Skip to content

Commit 92d8e79

Browse files
committed
Cleanups
1 parent 6ff43cb commit 92d8e79

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

src/osd/retro/libretro.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -519,17 +519,18 @@ extern void retro_main_loop();
519519

520520
void retro_run (void)
521521
{
522+
static int mfirst=1;
522523
bool updated = false;
523524

524525
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
525526
check_variables();
526527

527-
static int mfirst=1;
528-
if(mfirst==1){
529-
mfirst++;
530-
mmain(1,RPATH);
531-
printf("MAIN FIRST\n");
532-
return;
528+
if(mfirst==1)
529+
{
530+
mfirst++;
531+
mmain(1,RPATH);
532+
printf("MAIN FIRST\n");
533+
return;
533534
}
534535

535536
if (NEWGAME_FROM_OSD == 1)
@@ -565,8 +566,6 @@ void retro_run (void)
565566
else
566567
video_cb(NULL, fb_width, fb_height, fb_pitch << LOG_PIXEL_BYTES);
567568
#endif
568-
569-
//co_switch(emuThread);
570569
}
571570

572571
bool retro_load_game(const struct retro_game_info *info)
@@ -620,10 +619,7 @@ bool retro_load_game(const struct retro_game_info *info)
620619
void retro_unload_game(void)
621620
{
622621
if (retro_pause == 0)
623-
{
624622
retro_pause = -1;
625-
}
626-
627623
}
628624

629625
/* Stubs */

0 commit comments

Comments
 (0)