diff --git a/desmume/src/gtk/desmume.c b/desmume/src/gtk/desmume.c index a230d3c0b..8f22c4fad 100644 --- a/desmume/src/gtk/desmume.c +++ b/desmume/src/gtk/desmume.c @@ -26,42 +26,42 @@ BOOL click = FALSE; BOOL fini = FALSE; unsigned long glock = 0; -void desmume_mem_init(); - u8 *desmume_rom_data = NULL; u32 desmume_last_cycle; -void desmume_init() +void desmume_init( int disable_sound) { NDS_Init(); - SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4); + if ( !disable_sound) { + SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4); + } execute = FALSE; } -void desmume_free() +void desmume_free( void) { execute = FALSE; NDS_DeInit(); } -void desmume_pause() +void desmume_pause( void) { execute = FALSE; } -void desmume_resume() +void desmume_resume( void) { execute = TRUE; } -void desmume_toggle() +void desmume_toggle( void) { execute = (execute) ? FALSE : TRUE; } -BOOL desmume_running() +BOOL desmume_running( void) { return execute; } -void desmume_cycle() +void desmume_cycle( void) { u16 keypad; /* Joystick events */ diff --git a/desmume/src/gtk/desmume.h b/desmume/src/gtk/desmume.h index 96518af62..cd5fcca5d 100644 --- a/desmume/src/gtk/desmume.h +++ b/desmume/src/gtk/desmume.h @@ -24,15 +24,15 @@ #include "globals.h" -extern void desmume_init(); -extern void desmume_free(); +extern void desmume_init( int disable_sound); +extern void desmume_free( void); -extern void desmume_pause(); -extern void desmume_resume(); -extern void desmume_toggle(); -extern BOOL desmume_running(); +extern void desmume_pause( void); +extern void desmume_resume( void); +extern void desmume_toggle( void); +extern BOOL desmume_running( void); -extern void desmume_cycle(); +extern void desmume_cycle( void); #endif /*__DESMUME_H__*/