mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-27 23:30:31 +02:00
Merge pull request #216 from ZenithMDC/SDL2-hot-swap-battery-save
SDL2: Write battery to disk when ROMs are hot-swapped
This commit is contained in:
@@ -406,14 +406,12 @@ static bool handle_pending_command(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
case GB_SDL_RESET_COMMAND:
|
|
||||||
GB_save_battery(&gb, battery_save_path_ptr);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case GB_SDL_NO_COMMAND:
|
case GB_SDL_NO_COMMAND:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
case GB_SDL_RESET_COMMAND:
|
||||||
case GB_SDL_NEW_FILE_COMMAND:
|
case GB_SDL_NEW_FILE_COMMAND:
|
||||||
|
GB_save_battery(&gb, battery_save_path_ptr);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GB_SDL_QUIT_COMMAND:
|
case GB_SDL_QUIT_COMMAND:
|
||||||
|
Reference in New Issue
Block a user