[gnome-games] amiga: Replace AmigaGame by GenericGame
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] amiga: Replace AmigaGame by GenericGame
- Date: Fri, 25 Mar 2016 06:44:57 +0000 (UTC)
commit 296a19ef051ee8f1814d9c2978d78a3bcbdc33a1
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Mar 23 08:58:02 2016 +0100
amiga: Replace AmigaGame by GenericGame
plugins/amiga/src/Makefile.am | 1 -
plugins/amiga/src/amiga-game.vala | 43 -----------------------------------
plugins/amiga/src/amiga-plugin.vala | 9 ++++++-
3 files changed, 8 insertions(+), 45 deletions(-)
---
diff --git a/plugins/amiga/src/Makefile.am b/plugins/amiga/src/Makefile.am
index e66b425..67bf340 100644
--- a/plugins/amiga/src/Makefile.am
+++ b/plugins/amiga/src/Makefile.am
@@ -6,7 +6,6 @@ libgames_amiga_plugin_la_DEPENDENCIES = \
$(NULL)
libgames_amiga_plugin_la_SOURCES = \
- amiga-game.vala \
amiga-plugin.vala \
$(NULL)
diff --git a/plugins/amiga/src/amiga-plugin.vala b/plugins/amiga/src/amiga-plugin.vala
index a824179..e77bb47 100644
--- a/plugins/amiga/src/amiga-plugin.vala
+++ b/plugins/amiga/src/amiga-plugin.vala
@@ -1,7 +1,9 @@
// This file is part of GNOME Games. License: GPLv3
private class Games.AmigaPlugin : Object, Plugin {
+ private const string FINGERPRINT_PREFIX = "amiga";
private const string MIME_TYPE = "application/x-amiga-disk-format";
+ private const string MODULE_BASENAME = "libretro-amiga.so";
public GameSource get_game_source () throws Error {
var query = new MimeTypeTrackerQuery (MIME_TYPE, game_for_uri);
@@ -13,7 +15,12 @@ private class Games.AmigaPlugin : Object, Plugin {
}
private static Game game_for_uri (string uri) throws Error {
- return new AmigaGame (uri);
+ var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
+ var title = new FilenameTitle (uri);
+ var cover = new DummyCover ();
+ var runner = new RetroRunner (MODULE_BASENAME, uri, uid);
+
+ return new GenericGame (title, cover, runner);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]