Functions
addCheat
- addCheat(name: string, codes: CheatCode[]): void
getNumElapsedFrames
- getNumElapsedFrames(): number
getRomSettingsFromCRCs
- getRomSettingsFromCRCs(crc1: number, crc2: number): RomSettings
-
Parameters
-
crc1: number
-
crc2: number
isGSButtonPressed
- isGSButtonPressed(): boolean
isSpeedLimiterEnabled
- isSpeedLimiterEnabled(): boolean
loadStateFromFile
- loadStateFromFile(path: string): void
loadStateFromSlot
- loadStateFromSlot(slot: number): void
openRomFromFile
- openRomFromFile(path: string, newLen?: number): void
-
Parameters
-
path: string
-
Optional newLen: number
Returns void
openRomFromMemory
- openRomFromMemory(data: Buffer, newLen?: number): void
-
Parameters
-
data: Buffer
-
Optional newLen: number
Returns void
saveStateToFile
- saveStateToFile(path: string): void
saveStateToSlot
- saveStateToSlot(slot: number): void
setAudioMuted
- setAudioMuted(muted: boolean): void
setAudioVolume
- setAudioVolume(volume: number): void
setCheatEnabled
- setCheatEnabled(name: string, enabled: boolean): void
-
Parameters
-
name: string
-
enabled: boolean
Returns void
setGSButtonPressed
- setGSButtonPressed(pressed: boolean): void
setSpeedFactor
- setSpeedFactor(factor: number): void
setSpeedLimiterEnabled
- setSpeedLimiterEnabled(enabled: boolean): void
setStateSlot
- setStateSlot(slot: number): void
takeNextScreenshot
- takeNextScreenshot(): void