Class SrmSaveFile

SRM file wrapper that extracts SRAM, EEPROM, MemPak, and FlashRAM sections. Offsets and sizes are typical but may need adjustment for specific emulators.

Hierarchy (View Summary)

Constructors

Properties

eeprom: Uint8Array<ArrayBuffer> = ...
flashram: Uint8Array<ArrayBuffer> = ...
mempacks: [
    Uint8Array<ArrayBufferLike>,
    Uint8Array<ArrayBufferLike>,
    Uint8Array<ArrayBufferLike>,
    Uint8Array<ArrayBufferLike>,
] = ...
sram: Uint8Array<ArrayBuffer> = ...
EEPROM_SIZE: number = 0x800
FLASHRAM_SIZE: number = 0x20000
MEMPACK_COUNT: number = 4
MEMPACK_SIZE: number = 0x8000
SRAM_SIZE: number = 0x8000

Accessors

  • get data(): Uint8Array

    Returns Uint8Array

  • set data(bytes: Uint8Array): void

    Parameters

    • bytes: Uint8Array

    Returns void

Methods

  • Parameters

    • source: FsFile | Uint8Array<ArrayBufferLike>

    Returns this