[gnome-games] neo-geo-pocket: Replace NeoGeoPocketGame by GenericGame
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] neo-geo-pocket: Replace NeoGeoPocketGame by GenericGame
- Date: Fri, 25 Mar 2016 06:45:38 +0000 (UTC)
commit dfbd2daf492a492321acf87cae70d4113bbc1061
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Mar 25 07:01:50 2016 +0100
neo-geo-pocket: Replace NeoGeoPocketGame by GenericGame
plugins/neo-geo-pocket/src/Makefile.am | 1 -
.../neo-geo-pocket/src/neo-geo-pocket-game.vala | 43 --------------------
.../neo-geo-pocket/src/neo-geo-pocket-plugin.vala | 9 ++++-
3 files changed, 8 insertions(+), 45 deletions(-)
---
diff --git a/plugins/neo-geo-pocket/src/Makefile.am b/plugins/neo-geo-pocket/src/Makefile.am
index 08edc84..8651f3a 100644
--- a/plugins/neo-geo-pocket/src/Makefile.am
+++ b/plugins/neo-geo-pocket/src/Makefile.am
@@ -6,7 +6,6 @@ libgames_neo_geo_pocket_plugin_la_DEPENDENCIES = \
$(NULL)
libgames_neo_geo_pocket_plugin_la_SOURCES = \
- neo-geo-pocket-game.vala \
neo-geo-pocket-plugin.vala \
$(NULL)
diff --git a/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
b/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
index baa1b64..87b82e0 100644
--- a/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
+++ b/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
@@ -1,7 +1,9 @@
// This file is part of GNOME Games. License: GPLv3
private class Games.NeoGeoPocketPlugin : Object, Plugin {
+ private const string FINGERPRINT_PREFIX = "neo-geo-pocket";
private const string MIME_TYPE = "application/x-neo-geo-pocket-rom";
+ private const string MODULE_BASENAME = "libretro-neo-geo-pocket.so";
public GameSource get_game_source () throws Error {
var query = new MimeTypeTrackerQuery (MIME_TYPE, game_for_uri);
@@ -13,7 +15,12 @@ private class Games.NeoGeoPocketPlugin : Object, Plugin {
}
private static Game game_for_uri (string uri) throws Error {
- return new NeoGeoPocketGame (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]