import { readFile } from "fs/promises" ; import { parseCharacter } from "./character/parsing/parseCharacter" ; import { saveCharacter } from "./character/saveCharacter" ; import { parsePlugyStash } from "./plugy-stash/parsing/parsePlugyStash" ; import { savePlugyStash } from "./plugy-stash/savePlugyStash" ; import { toD2 } from "./items/moving/conversion" ; import { LAST_LEGACY } from "./character/parsing/versions" ; import { addPage } from "./plugy-stash/addPage" ; import { transferItem } from "./items/moving/transferItem" ; import { ItemStorageType } from "./items/types/ItemLocation" ; import { parseD2rStash } from "./d2r-stash/parsing/parseD2rStash" ; import { saveD2rStash } from "./d2r-stash/saveD2rStash" ; const CHAR = "test/d2r/D2rSorc.d2s" ; const STASH = "test/d2r/SharedStashSoftCoreV2_pot_page1_2x2.d2i" ; const TEST_OUTPUT = "test/saved.sss" ; const DANGER_OUTPUT = STASH ; async function main ( ) { const original = await readFile ( STASH ) ; const output = await readFile ( "test/output.d2i" ) ; original . forEach ( ( byte , i ) => { if ( output [ i ] !== byte ) { console . log ( "Mismatch!" ) ; } } ) ; } void main ( ) ;