diff --git a/AquaNet/src/libs/userbox/userbox.ts b/AquaNet/src/libs/userbox/userbox.ts index 6162105d..67539089 100644 --- a/AquaNet/src/libs/userbox/userbox.ts +++ b/AquaNet/src/libs/userbox/userbox.ts @@ -163,11 +163,11 @@ export function initializeDb() : Promise { export async function userboxFileProcess(folder: FileSystemEntry, progressUpdate: (progress: number, progressString: string) => void): Promise { if (!isDirectory(folder)) return t("userbox.new.error.invalidFolder") - if (!(await validateDirectories(folder, "bin/option")) && !(await validateDirectories(folder, "data/A000"))) + if (!(await validateDirectories(folder, "bin/option") || await validateDirectories(folder, "option")) && !(await validateDirectories(folder, "data/A000"))) return t("userbox.new.error.invalidFolder"); initializeDb(); - const optionFolder = await getDirectoryFromPath(folder, "bin/option"); + const optionFolder = await getDirectoryFromPath(folder, "bin/option") ?? await getDirectoryFromPath(folder, "option"); if (optionFolder) await scanOptionFolder(optionFolder, progressUpdate); const dataFolder = await getDirectoryFromPath(folder, "data"); diff --git a/docs/chu3-national-matching.md b/docs/chu3-national-matching.md index ed36db07..c766900c 100644 --- a/docs/chu3-national-matching.md +++ b/docs/chu3-national-matching.md @@ -34,6 +34,7 @@ This is tested on Chusan 2.27. ### Firewall Rules Below is a simple command to add firewall rules for Chunithm. +(Put this into a text file and change the file extension to .bat) ```shell @echo off