Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/classes/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,10 @@ export class Emulator {

const { getEmscripten } = await importCoreJsAsESM(core)
checkIsAborted(this.options.signal)
const emscripten: EmulatorEmscripten = await getEmscripten({ Module: initialModule })
const emscripten = await getEmscripten({ Module: initialModule })
checkIsAborted(this.options.signal)
this.emscripten = emscripten
const { Module } = emscripten
const Module = (emscripten as EmulatorEmscripten).Module ?? emscripten
this.emscripten = { ...(emscripten as EmulatorEmscripten), Module }
await Module.monitorRunDependencies()
checkIsAborted(this.options.signal)
}
Expand Down
1 change: 1 addition & 0 deletions src/types/retroarch-emscripten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface RetroArchEmscriptenModule extends EmscriptenModule {
EmscriptenSendCommand?: (command: string) => void
ERRNO_CODES: any
FS: any
mainScriptUrlOrBlob: string
monitorRunDependencies: (left?: number) => Promise<void> | void
PATH: any
preRun: ((...args: any) => void)[]
Expand Down