From 1eca3b59a21b743199e7564ada40924457d552bf Mon Sep 17 00:00:00 2001 From: offtkp Date: Fri, 22 Sep 2023 16:30:34 +0300 Subject: [PATCH] [Achievements]Wrap function in ifdef --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 882af8e6b..7199dc664 100644 --- a/src/main.c +++ b/src/main.c @@ -2263,7 +2263,9 @@ void se_load_rom_from_emu_state(sb_emu_state_t*emu){ } } void se_load_rom(const char *filename){ +#ifdef ENABLE_RETRO_ACHIEVEMENTS se_ra_game_cleanup(); +#endif se_reset_rewind_buffer(&rewind_buffer); se_reset_save_states(); se_reset_cheats();