[gnome-games/wip/exalm/savestates: 5/20] retro-runner: Init media number in reset_metadata()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/savestates: 5/20] retro-runner: Init media number in reset_metadata()
- Date: Sat, 25 Jan 2020 20:01:39 +0000 (UTC)
commit 0f3263424617d24a8d6a89a4ba02a193422c6f79
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Jan 25 23:09:53 2020 +0500
retro-runner: Init media number in reset_metadata()
src/retro/retro-runner.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index f88cb158..1429ad84 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -224,9 +224,6 @@ public class Games.RetroRunner : Object, Runner {
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 ();
-
if (!is_initialized) {
if (latest_savestate != null)
tmp_live_savestate = latest_savestate.clone_in_tmp ();
@@ -667,6 +664,8 @@ public class Games.RetroRunner : Object, Runner {
}
protected virtual void reset_metadata (Savestate last_savestate) throws Error {
+ if (last_savestate.has_media_data ())
+ media_set.selected_media_number = last_savestate.get_media_data ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]