[gnome-games/wip/exalm/savestates: 2/20] retro-runner: Call reset_metadata() before initializing tmp savestate



commit e099d2492f406ff2ad22f59e0af3b0c74a46af24
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Jan 25 23:07:43 2020 +0500

    retro-runner: Call reset_metadata() before initializing tmp savestate

 src/retro/retro-runner.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index bd16b903..9f1a25a4 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -221,6 +221,9 @@ public class Games.RetroRunner : Object, Runner {
        }
 
        public void start () throws Error {
+               if (latest_savestate != null)
+                       reset_metadata (latest_savestate);
+
                if (latest_savestate != null && latest_savestate.has_media_data ())
                        media_set.selected_media_number = latest_savestate.get_media_data ();
 
@@ -243,9 +246,6 @@ public class Games.RetroRunner : Object, Runner {
 
                loop.start ();
 
-               if (latest_savestate != null)
-                       reset_metadata (latest_savestate);
-
                running = true;
        }
 


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