[gnome-games/wip/exalm/rebrand: 29/124] runner: Remove is-integrated property
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 29/124] runner: Remove is-integrated property
- Date: Sat, 19 Jun 2021 14:37:43 +0000 (UTC)
commit 9b9d6c731cacaf00eecaf79b8772c641fd9868af
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Mar 24 03:21:37 2021 +0500
runner: Remove is-integrated property
It's always true now.
src/core/runner.vala | 1 -
src/retro/retro-runner.vala | 4 ----
src/ui/display-view.vala | 13 +++----------
3 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/core/runner.vala b/src/core/runner.vala
index 90c5d775..504dbd3f 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -8,7 +8,6 @@ public interface Games.Runner : Object {
public abstract bool can_fullscreen { get; }
public abstract bool can_resume { get; }
public abstract bool supports_snapshots { get; }
- public abstract bool is_integrated { get; }
public abstract MediaSet? media_set { get; }
public abstract InputMode input_mode { get; set; }
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 0fff8996..b30b5791 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -20,10 +20,6 @@ public class Games.RetroRunner : Object, Runner {
get { return started && core.get_can_access_state (); }
}
- public bool is_integrated {
- get { return true; }
- }
-
private MediaSet _media_set;
public MediaSet? media_set {
get { return _media_set; }
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index 0ce88061..3d2b8258 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -95,7 +95,7 @@ private class Games.DisplayView : Gtk.Box, UiView {
else
extra_widget = null;
- secondary_menu_button.visible = runner != null && runner.is_integrated;
+ secondary_menu_button.visible = runner != null;
runner.snapshot_created.connect (flash_box.flash);
}
@@ -554,13 +554,6 @@ private class Games.DisplayView : Gtk.Box, UiView {
runner.pause ();
- if (!runner.is_integrated) {
- // Game does not and will not support snapshots (e.g. Steam games)
- // => Progress cannot be saved so game can be quit safely
- runner.stop ();
- return true;
- }
-
if (runner.try_create_snapshot (true) != null) {
// Progress saved => can quit game safely
runner.stop ();
@@ -681,7 +674,7 @@ private class Games.DisplayView : Gtk.Box, UiView {
}
private void show_snapshots () {
- if (runner != null && runner.is_integrated)
+ if (runner != null)
is_showing_snapshots = true;
}
@@ -690,7 +683,7 @@ private class Games.DisplayView : Gtk.Box, UiView {
}
private async void restart_internal () {
- if (runner == null || !runner.is_integrated) {
+ if (runner == null) {
yield run_game (game);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]