[gnome-games/wip/exalm/mame: 10/18] retro-runner: Fix loading n64 savestates



commit 4586a5052277586445a4c9168651a75bfc956f7b
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]