[gnome-games/wip/exalm/n64: 11/14] retro-runner: Fix loading n64 savestates
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/n64: 11/14] retro-runner: Fix loading n64 savestates
- Date: Sun, 2 Feb 2020 14:39:47 +0000 (UTC)
commit 8e9413a5e9cce71374aaecb02911f42532c3a5a2
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Feb 1 02:37:36 2020 +0500
retro-runner: Fix loading n64 savestates
TBD
src/retro/retro-runner.vala | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 540c9989..baa0edf8 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -195,11 +195,12 @@ public class Games.RetroRunner : Object, Runner {
}
public void load_previewed_savestate () throws Error {
- core.stop ();
-
tmp_live_savestate = previewed_savestate.clone_in_tmp ();
core.save_directory = tmp_live_savestate.get_save_directory_path ();
load_save_ram (previewed_savestate.get_save_ram_path ());
+
+ core.iteration (true); // Needed to finish preparing some cores.
+
core.load_state (previewed_savestate.get_snapshot_path ());
if (previewed_savestate.has_media_data ())
@@ -237,7 +238,7 @@ public class Games.RetroRunner : Object, Runner {
is_ready = true;
}
- core.iteration (); // Needed to finish preparing some cores.
+ core.iteration (true); // Needed to finish preparing some cores.
core.reset ();
core.run ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]