Savegames → Import backup now reads an English Crystal .sav (from an
emulator, a cartridge dump or the 3DS Virtual Console's sav.dat) and
converts it into a native save after a preview.
- world/cartridge-save.ts: picks the copy TryLoadSaveFile would load
(check values and checksums of the main copy, else the backup), reads
the saved WRAM block, the numbered boxes, mail backups, Hall of Fame and
Battle Tower by PRET labels (SRAM, SAVE_BLOCK in the profile, checked by
check:reference with the SAV constants), engine flags via EngineFlags,
scenes via MapScenes, and the map's objects and masks.
- Clock: an emulator MBC3 footer plus the time since it was written,
FixDays/FixTime with wStart*, mapped to the minute and weekday offsets;
without one, the device's time and the saved wCurDay. Day countdowns
move with the day difference.
- Refused with the reason: unported maps, the Bug-Catching Contest, a
Battle Tower challenge, characters outside the naming screen.
- Names keep <PK>/<MN> as ᴾᴷ/ᴹᴺ (one character, one tile); trainer names
accept the naming screen's alphabet; boxed Eggs validate; native states
up to 256 kB load (a full PC exceeded 64 kB).
- Tests: the committed debug saves, layout offsets against the symbols,
backup fallback, clock footers, day counters, refusals, slot session
and the Savegames flow in Chromium and WebKit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>