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

+10 -4
View File
@@ -7,6 +7,12 @@ export const romPath = resolve(
"Pokemon - Crystal Version (UE) (V1.1) [C][!].gbc",
);
export const symbolsPath = ".reference/pokecrystal/pokecrystal11.sym";
/** PRET's rebuilds of the other English cartridges (`make crystal
* crystal_au`), which keep 1.1's addresses for every label the port reads. */
export const revisionRoms = {
"1.0": resolve(".reference/pokecrystal/pokecrystal.gbc"),
au: resolve(".reference/pokecrystal/pokecrystal_au.gbc"),
} as const;
/** Banked addresses from the private PRET rebuild's symbol file. */
export function loadSymbols() {
@@ -34,9 +40,9 @@ export function loadSymbols() {
};
}
/** Open the reference page and hand it the ROM through an isolated file
* input, without an HTTP ROM endpoint. */
export async function openReference(page: Page) {
/** Open the reference page and hand it the ROM (by default the user's 1.1)
* through an isolated file input, without an HTTP ROM endpoint. */
export async function openReference(page: Page, rom = romPath) {
await page.goto("/reference.html");
await page.evaluate(() => {
const input = document.createElement("input");
@@ -44,5 +50,5 @@ export async function openReference(page: Page) {
input.id = "reference-fixture";
document.body.append(input);
});
await page.locator("#reference-fixture").setInputFiles(romPath);
await page.locator("#reference-fixture").setInputFiles(rom);
}