Merge branch 'v1-dev' of https://github.com/MewoLab/AquaDX into v1-dev

pull/106/head
Azalea 2025-01-07 10:38:36 -05:00
commit f033496d20
2 changed files with 3 additions and 2 deletions

View File

@ -163,11 +163,11 @@ export function initializeDb() : Promise<void> {
export async function userboxFileProcess(folder: FileSystemEntry, progressUpdate: (progress: number, progressString: string) => void): Promise<string | null> {
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");

View File

@ -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