[gnome-games/wip/exalm/n64: 1/4] retro-runner: Fix loading n64 savestates



commit bebe2f77e5d9badabde27313ecfa95b0b1ed2711
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 | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index ad32d8fe..0e3037ff 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -195,11 +195,10 @@ 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.load_state (previewed_savestate.get_snapshot_path ());
 
                if (previewed_savestate.has_media_data ())
@@ -237,9 +236,6 @@ public class Games.RetroRunner : Object, Runner {
                        is_ready = true;
                }
 
-               core.iteration (); // Needed to finish preparing some cores.
-               core.reset ();
-
                core.run ();
 
                running = true;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]