[gnome-games/wip/exalm/runner-refactor] retro-runner: Remove save_ram_and_dir_set
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/runner-refactor] retro-runner: Remove save_ram_and_dir_set
- Date: Fri, 6 Mar 2020 22:22:27 +0000 (UTC)
commit 25900ea6df78db5d752fb0ea62eceee35ec73519
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Mar 7 03:14:22 2020 +0500
retro-runner: Remove save_ram_and_dir_set
src/retro/retro-runner.vala | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 7383345f..7c50ebf7 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -64,7 +64,6 @@ public class Games.RetroRunner : Object, Runner {
}
private bool core_loaded;
- private bool save_ram_and_dir_set;
private bool is_error;
private RetroRunner (Game game) {
@@ -266,8 +265,6 @@ public class Games.RetroRunner : Object, Runner {
media_set.selected_media_number = previewed_savestate.get_media_data ();
load_savestate_metadata (previewed_savestate);
-
- save_ram_and_dir_set = true;
}
public Savestate[] get_savestates () {
@@ -279,7 +276,6 @@ public class Games.RetroRunner : Object, Runner {
public void start () throws Error {
assert (core_loaded);
- assert (save_ram_and_dir_set);
resume ();
}
@@ -302,11 +298,6 @@ public class Games.RetroRunner : Object, Runner {
if (!core_loaded)
return;
- if (!save_ram_and_dir_set) {
- critical ("RetroRunner.resume() cannot be called if the game isn't playing");
- return;
- }
-
// Unpause an already running game
core.run ();
running = true;
@@ -329,7 +320,6 @@ public class Games.RetroRunner : Object, Runner {
_running = false;
core_loaded = false;
- save_ram_and_dir_set = false;
}
private void on_video_filter_changed () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]