[gnome-games] runner: Add new_savestate_created() signal
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] runner: Add new_savestate_created() signal
- Date: Thu, 15 Aug 2019 23:04:24 +0000 (UTC)
commit 2752c9520c80f61a0ad9e0c87a23ccbbb2d1fbcd
Author: Yetizone <andreii lisita gmail com>
Date: Fri Aug 16 00:01:27 2019 +0300
runner: Add new_savestate_created() signal
This will be used in the next commit to notify the display-box when a new
savestate has been created so that it will flash the screen.
src/core/runner.vala | 1 +
src/retro/retro-runner.vala | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/core/runner.vala b/src/core/runner.vala
index ce0eab23..50de8b5d 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -1,6 +1,7 @@
// This file is part of GNOME Games. License: GPL-3.0+.
public interface Games.Runner : Object {
+ public signal void new_savestate_created ();
public signal void stopped ();
public abstract bool can_fullscreen { get; }
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index bedb2b7b..b31bc245 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -455,6 +455,7 @@ public class Games.RetroRunner : Object, Runner {
return null;
try {
+ new_savestate_created ();
return create_savestate (is_automatic);
}
catch (Error e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]