File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ export class Emulator {
295295 const { Module } = this . getEmscripten ( )
296296 if ( exportedCommand [ msg ] && exportedCommand [ msg ] in Module ) {
297297 this . callCommand ( exportedCommand [ msg ] )
298+ } else if ( 'EmscriptenSendCommand' in Module ) {
299+ Module . EmscriptenSendCommand ( msg )
298300 } else {
299301 const bytes = textEncoder . encode ( `${ msg } \n` )
300302 this . messageQueue . push ( [ bytes , 0 ] )
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ export interface RetroArchEmscriptenModule extends EmscriptenModule {
22 asm : any
33 callMain : ( args : string [ ] ) => void
44 canvas : HTMLCanvasElement
5+ // eslint-disable-next-line @typescript-eslint/naming-convention
6+ EmscriptenSendCommand ?: ( command : string ) => void
57 ERRNO_CODES : any
68 FS : any
79 monitorRunDependencies : ( left ?: number ) => Promise < void > | void
You can’t perform that action at this time.
0 commit comments