[gnome-games/wip/exalm/n64: 13/16] retro-runner: Fix loading n64 savestates



commit 0bcb034163dc06c387b40f43b320719f2951767b
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 c77c691e..ee7dae45 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]