android: only restart if game is running

Fixes MINIDUMP-G1, MINIDUMP-FV, MINIDUMP-FY, MINIDUMP-FD, MINIDUMP-F2,
MINIDUMP-EN
This commit is contained in:
Flyinghead 2023-03-06 17:02:01 +01:00
parent cd6152b193
commit cab02c86bc
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ extern "C" JNIEXPORT void JNICALL Java_com_reicast_emulator_emu_JNIdc_pause(JNIE
stopEmu(); stopEmu();
gui_stop_game(); gui_stop_game();
} }
else if (stopEmu()) else if (game_started && stopEmu())
{ {
game_started = true; // restart when resumed game_started = true; // restart when resumed
if (config::AutoSaveState) if (config::AutoSaveState)