[gnome-games] runner: Remove the can_quit_safely property
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] runner: Remove the can_quit_safely property
- Date: Fri, 9 Aug 2019 13:39:23 +0000 (UTC)
commit 95ab84b33fff41a60a94fe972f2a949264d141ce
Author: Yetizone <andreii lisita gmail com>
Date: Thu Aug 8 12:16:07 2019 +0300
runner: Remove the can_quit_safely property
src/command/command-runner.vala | 4 ----
src/core/runner.vala | 1 -
src/dummy/dummy-runner.vala | 4 ----
src/retro/retro-runner.vala | 13 -------------
4 files changed, 22 deletions(-)
---
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index 9257cc58..e53b3db9 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -5,10 +5,6 @@ public class Games.CommandRunner : Object, Runner {
get { return false; }
}
- public bool can_quit_safely {
- get { return true; }
- }
-
public bool can_resume {
get { return false; }
}
diff --git a/src/core/runner.vala b/src/core/runner.vala
index cbecc5c9..dc186643 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -4,7 +4,6 @@ public interface Games.Runner : Object {
public signal void stopped ();
public abstract bool can_fullscreen { get; }
- public abstract bool can_quit_safely { get; }
public abstract bool can_resume { get; }
public abstract bool supports_savestates { get; }
public abstract bool can_support_savestates { get; } // Now or in the future
diff --git a/src/dummy/dummy-runner.vala b/src/dummy/dummy-runner.vala
index c64d1041..df750e48 100644
--- a/src/dummy/dummy-runner.vala
+++ b/src/dummy/dummy-runner.vala
@@ -5,10 +5,6 @@ private class Games.DummyRunner : Object, Runner {
get { return false; }
}
- public bool can_quit_safely {
- get { return true; }
- }
-
public bool can_resume {
get { return false; }
}
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 74d97627..ffe8ebbd 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -8,10 +8,6 @@ public class Games.RetroRunner : Object, Runner {
get { return true; }
}
- public bool can_quit_safely {
- get { return !should_save; }
- }
-
public bool can_resume {
get { return game_savestates.length != 0; }
}
@@ -58,17 +54,12 @@ public class Games.RetroRunner : Object, Runner {
get { return _running; }
set {
_running = value;
-
- if (running)
- should_save = true;
-
view.sensitive = running;
}
}
private bool is_initialized;
private bool is_ready;
- private bool should_save;
public RetroRunnerBuilder builder {
construct {
@@ -88,7 +79,6 @@ public class Games.RetroRunner : Object, Runner {
construct {
is_initialized = false;
is_ready = false;
- should_save = false;
settings = new Settings ("org.gnome.Games");
}
@@ -262,7 +252,6 @@ public class Games.RetroRunner : Object, Runner {
_running = false;
is_initialized = false;
is_ready = false;
- should_save = false;
}
private void on_video_filter_changed () {
@@ -464,8 +453,6 @@ public class Games.RetroRunner : Object, Runner {
// Save the tmp_live_savestate into the game savestates directory
var game_savestates_dir_path = get_game_savestates_dir_path ();
tmp_live_savestate.save_in (game_savestates_dir_path);
- should_save = false;
-
// FIXME: The game_savestates array should be updated somehow here
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]