Read the English 1.0 and Australian cartridges besides 1.1 (#84)
Checks / web (push) Failing after 19s
Private ROM checks / private-rom (push) Failing after 25m36s

PRET's crystal and crystal_au builds reproduce both retail cartridges,
and every label the profile pins keeps its address in all three;
check:reference now verifies that when the rebuilds are present. The
revision comes from the header. Revision 1.0's Battle Tower draws only
the first 21 trainers and picks its texts' gender from the name's sixth
character, checked against each cartridge. A native backup imports
across the three, which share every map, event and object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kawaandClaude Opus 5.5 committed 2026-10-17 16:12:00 +02:00
1 parent acdaf62eaa
commit 3c480a28f0
17 files changed
+317 -26

No files matched your search

+8 -2
View File
@@ -1,6 +1,6 @@
import type { GameRuntime } from "./runtime";
import type { SessionState } from "./session";
import type { ValidatedRom } from "../rom/validate";
import { supportedRom, type ValidatedRom } from "../rom/validate";
import { encodeSave, type SaveRecord } from "../storage/saves";
import {
SLOT_VERSION,
@@ -54,6 +54,9 @@ export type ImportPreview =
conflicts: { slot: SaveSlot; identical: boolean }[];
/** Present when the file was a cartridge save. */
cartridge?: CartridgeImport;
/** The other supported cartridge a native backup was made with; it
* continues with this one. */
madeWith?: string;
}
| {
ok: false;
@@ -306,7 +309,9 @@ export class SlotSession {
reason: "This file is not a Crystal backup.",
identity,
};
if (value.romHash !== this.romHash)
// The English cartridges share their native saves.
const other = value.romHash === this.romHash ? undefined : supportedRom(value.romHash);
if (value.romHash !== this.romHash && !other)
return {
ok: false,
reason: "This backup was made with a different cartridge.",
@@ -348,6 +353,7 @@ export class SlotSession {
record,
...inspected,
conflicts: await this.conflicts(record, inspected.summary),
...(other && { madeWith: other.name }),
};
}