[gnome-games] love: Replace LoveGame by GenericGame
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] love: Replace LoveGame by GenericGame
- Date: Thu, 12 May 2016 16:53:19 +0000 (UTC)
commit b9549dc9935db5de2f98ec07ec1f8efdddd4788e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue May 10 16:25:09 2016 +0200
love: Replace LoveGame by GenericGame
This is needed to remove custom game types and to simplify the code
base.
plugins/love/src/Makefile.am | 1 -
plugins/love/src/love-game.vala | 42 -------------------------------------
plugins/love/src/love-plugin.vala | 9 +++++++-
3 files changed, 8 insertions(+), 44 deletions(-)
---
diff --git a/plugins/love/src/Makefile.am b/plugins/love/src/Makefile.am
index 5fc3680..7ef2607 100644
--- a/plugins/love/src/Makefile.am
+++ b/plugins/love/src/Makefile.am
@@ -7,7 +7,6 @@ libgames_love_plugin_la_DEPENDENCIES = \
libgames_love_plugin_la_SOURCES = \
love-error.vala \
- love-game.vala \
love-icon.vala \
love-package.vala \
love-plugin.vala \
diff --git a/plugins/love/src/love-plugin.vala b/plugins/love/src/love-plugin.vala
index acdb524..2bd672b 100644
--- a/plugins/love/src/love-plugin.vala
+++ b/plugins/love/src/love-plugin.vala
@@ -13,7 +13,14 @@ private class Games.LovePlugin : Object, Plugin {
}
private static Game game_for_uri (string uri) throws Error {
- return new LoveGame (uri);
+ var package = new LovePackage (uri);
+ var title = new LoveTitle (package);
+ var icon = new LoveIcon (package);
+ var cover = new DummyCover ();
+ string[] args = { "love", uri };
+ var runner = new CommandRunner (args, true);
+
+ return new GenericGame (title, icon, cover, runner);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]