Rework EmuLoop to save one level of indentation.
This commit is contained in:
parent
3b7a0e79b5
commit
c89f3a86bd
|
@ -1287,10 +1287,16 @@ gboolean EmuLoop(gpointer data)
|
|||
unsigned int i;
|
||||
gchar *Title;
|
||||
|
||||
if(desmume_running()) { /* If desmume is currently running */
|
||||
if (!desmume_running()) {
|
||||
regMainLoop = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* If desmume is currently running */
|
||||
static int limiter_frame_counter = 0;
|
||||
fps_FrameCount += Frameskip + 1;
|
||||
if(!fps_SecStart) fps_SecStart = SDL_GetTicks();
|
||||
if (!fps_SecStart)
|
||||
fps_SecStart = SDL_GetTicks();
|
||||
if (SDL_GetTicks() - fps_SecStart >= 1000) {
|
||||
fps_SecStart = SDL_GetTicks();
|
||||
fps = fps_FrameCount;
|
||||
|
@ -1323,10 +1329,6 @@ gboolean EmuLoop(gpointer data)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
regMainLoop = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A SDL timer callback function. Signals the supplied SDL semaphore
|
||||
|
|
Loading…
Reference in New Issue