fix: seeds corrections for iidx 32 and 33 (#1365)

* fix: pc fixes

* fix: ss fixes

* fix: advance

* fix: iidx-mdb-parse: prefer -p0 files if they exist

* fix: advance version
This commit is contained in:
GRIM657
2025-09-30 02:14:57 +01:00
committed by GitHub
parent c740c94cea
commit a6ff33dc18
2 changed files with 3460 additions and 1690 deletions
File diff suppressed because it is too large Load Diff
@@ -162,11 +162,13 @@ export async function ParseIIDXData(
const extractedIFSLeggLoc = path.join(ifsOUT, `${iSongID}-p0_ifs/${iSongID}/${iSongID}.1`);
if (fs.existsSync(ifsLeggPath)) {
if (!fs.existsSync(extractedIFSLeggLoc)) {
if (fs.existsSync(ifsLeggPath) || fs.existsSync(extractedIFSLeggLoc)) {
if (!fs.existsSync(extractedIFSLeggLoc) || alwaysExtract) {
ifsExtract(ifsLeggPath);
}
dotOnePath = extractedIFSLeggLoc;
const charts = await ParseDotOneFile(extractedIFSLeggLoc, {
genre,
marquee,
@@ -177,15 +179,15 @@ export async function ParseIIDXData(
for (const chart of charts) {
notecounts[`${chart.playtype}-${chart.difficulty}`] = chart.notecount;
}
}
} else {
// if we've already extracted this, and --always-extract isn't set
if (fs.existsSync(extractedIFSLoc) && !alwaysExtract) {
dotOnePath = extractedIFSLoc;
} else if (fs.existsSync(ifsPath)) {
ifsExtract(ifsPath);
// if we've already extracted this, and --always-extract isn't set
if (fs.existsSync(extractedIFSLoc) && !alwaysExtract) {
dotOnePath = extractedIFSLoc;
} else if (fs.existsSync(ifsPath)) {
ifsExtract(ifsPath);
dotOnePath = extractedIFSLoc;
dotOnePath = extractedIFSLoc;
}
}
if (!fs.existsSync(dotOnePath)) {