[gnome-games/wip/exalm/runner-refactor: 14/58] retro-runner: Load savestate metadata in prepare()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/runner-refactor: 14/58] retro-runner: Load savestate metadata in prepare()
- Date: Sun, 8 Mar 2020 13:41:57 +0000 (UTC)
commit 309ed24ed32db2ab5ffde924cf0b5862c51d5746
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Mar 6 15:41:20 2020 +0500
retro-runner: Load savestate metadata in prepare()
Ensure things like Nintendo DS switcher are in the correct state right
away.
src/retro/retro-runner.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index c0c34d3c..b4719c9c 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -134,7 +134,11 @@ public class Games.RetroRunner : Object, Runner {
tmp_live_savestate = latest_savestate.clone_in_tmp ();
else
tmp_live_savestate = Savestate.create_empty_in_tmp (game.platform,
get_core_id ());
+
instantiate_core (tmp_live_savestate.get_save_directory_path ());
+
+ if (latest_savestate != null)
+ load_savestate_metadata (latest_savestate);
}
catch (RetroError.MODULE_NOT_FOUND e) {
debug ("%s\n", e.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]