Skip to content

Commit 7443174

Browse files
authored
try fix #43
1 parent f1ea460 commit 7443174

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/osd/retro/libretro.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "libretro_shared.h"
1616

1717
/* forward decls / externs / prototypes */
18-
18+
bool retro_load_ok = false;
1919
int retro_pause = 0;
2020

2121
int fb_width = 320;
@@ -506,7 +506,7 @@ extern void retro_finish();
506506
void retro_deinit(void)
507507
{
508508
printf("RETRO DEINIT\n");
509-
retro_finish();
509+
if(retro_load_ok)retro_finish();
510510
}
511511

512512
void retro_reset (void)
@@ -530,6 +530,7 @@ void retro_run (void)
530530
mfirst++;
531531
mmain(1,RPATH);
532532
printf("MAIN FIRST\n");
533+
retro_load_ok=true;
533534
return;
534535
}
535536

0 commit comments

Comments
 (0)