[gnome-games] Revert "retro-runner: Remove game-init and game-deinit signals"
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Revert "retro-runner: Remove game-init and game-deinit signals"
- Date: Wed, 22 Jan 2020 20:44:41 +0000 (UTC)
commit f2aa94b31ae9c2f00639bc0128a75ada00c1d418
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jan 22 20:44:25 2020 +0000
Revert "retro-runner: Remove game-init and game-deinit signals"
This reverts commit 7f094342d9153d51fa7d7f98aa3b1e3e7b07d885
src/retro/retro-runner.vala | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 6cb16bb4..d021a179 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -3,6 +3,9 @@
public class Games.RetroRunner : Object, Runner {
private const int MAX_AUTOSAVES = 5;
+ public signal void game_init ();
+ public signal void game_deinit ();
+
public bool can_fullscreen {
get { return true; }
}
@@ -285,6 +288,8 @@ public class Games.RetroRunner : Object, Runner {
settings.changed["video-filter"].disconnect (on_video_filter_changed);
+ game_deinit ();
+
core = null;
view.set_core (null);
view = null;
@@ -324,6 +329,8 @@ public class Games.RetroRunner : Object, Runner {
critical (e.message);
}
+ game_init ();
+
var platforms_dir = Application.get_platforms_dir ();
var platform_id = platform.get_id ();
core.system_directory = @"$platforms_dir/$platform_id/system";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]