Remove unused global variables, move desmume_last_cycle from global to static in desmume_cycle(), no need to initialize static variables.
This commit is contained in:
parent
9383c57874
commit
85a9c6e87d
|
@ -28,11 +28,6 @@
|
|||
|
||||
volatile BOOL execute = FALSE;
|
||||
BOOL click = FALSE;
|
||||
BOOL fini = FALSE;
|
||||
unsigned long glock = 0;
|
||||
|
||||
u8 *desmume_rom_data = NULL;
|
||||
u32 desmume_last_cycle;
|
||||
|
||||
void desmume_init( struct armcpu_memory_iface *arm9_mem_if,
|
||||
struct armcpu_ctrl_iface **arm9_ctrl_iface,
|
||||
|
@ -79,7 +74,9 @@ BOOL desmume_running( void)
|
|||
|
||||
void desmume_cycle( void)
|
||||
{
|
||||
static u32 desmume_last_cycle;
|
||||
u16 keypad;
|
||||
|
||||
/* Joystick events */
|
||||
/* Retrieve old value: can use joysticks w/ another device (from our side) */
|
||||
keypad = get_keypad();
|
||||
|
|
|
@ -64,7 +64,7 @@ static const char *bad_glob_cflash_disk_image_file;
|
|||
|
||||
#define FPS_LIMITER_FRAME_PERIOD 8
|
||||
static SDL_sem *fps_limiter_semaphore;
|
||||
static int gtk_fps_limiter_disabled = 0;
|
||||
static int gtk_fps_limiter_disabled;
|
||||
|
||||
|
||||
/************************ CONFIG FILE *****************************/
|
||||
|
|
Loading…
Reference in New Issue