[gnome-games/wip/exalm/n64: 12/15] 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: 12/15] retro-runner: Fix loading n64 savestates
- Date: Tue, 18 Feb 2020 20:56:22 +0000 (UTC)
commit 5f8a4fde7c23fb05fe37b2d57b55c824c96851f0
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 ad32d8fe..83afce7b 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]