[gnome-games/wip/exalm/runner-refactor: 37/58] retro-runner: Only reset metadata on start() when not ready
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/runner-refactor: 37/58] retro-runner: Only reset metadata on start() when not ready
- Date: Sun, 8 Mar 2020 13:43:53 +0000 (UTC)
commit 4bdcf2efd953363b6fdf0776c944328fe6327b06
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Mar 7 02:58:11 2020 +0500
retro-runner: Only reset metadata on start() when not ready
src/retro/retro-runner.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 32aab731..c87d7e47 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -220,8 +220,6 @@ public class Games.RetroRunner : Object, Runner {
}
public void start () throws Error {
- reset_metadata (latest_savestate);
-
if (!is_initialized) {
tmp_save_dir = create_tmp_save_dir ();
if (latest_savestate != null)
@@ -231,6 +229,8 @@ public class Games.RetroRunner : Object, Runner {
}
if (!is_ready) {
+ reset_metadata (latest_savestate);
+
if (latest_savestate != null)
load_save_ram (latest_savestate.get_save_ram_path ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]