We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1ea460 commit 7443174Copy full SHA for 7443174
1 file changed
src/osd/retro/libretro.c
@@ -15,7 +15,7 @@
15
#include "libretro_shared.h"
16
17
/* forward decls / externs / prototypes */
18
-
+bool retro_load_ok = false;
19
int retro_pause = 0;
20
21
int fb_width = 320;
@@ -506,7 +506,7 @@ extern void retro_finish();
506
void retro_deinit(void)
507
{
508
printf("RETRO DEINIT\n");
509
- retro_finish();
+ if(retro_load_ok)retro_finish();
510
}
511
512
void retro_reset (void)
@@ -530,6 +530,7 @@ void retro_run (void)
530
mfirst++;
531
mmain(1,RPATH);
532
printf("MAIN FIRST\n");
533
+ retro_load_ok=true;
534
return;
535
536
0 commit comments