[gnome-games] Use GriloCover in several games
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Use GriloCover in several games
- Date: Wed, 13 Jul 2016 08:13:00 +0000 (UTC)
commit cddd37cdea2915bf8dfe915bce665e523c7fc209
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue May 10 16:59:56 2016 +0200
Use GriloCover in several games
Replace DummyCover by GriloCover in several games to retrieve covers
from the web using Grilo.
These game types are:
- Amiga
- Atari 2600
- Atari 7800
- Dreamcast
- Game Boy
- Game Boy Advance
- Game Cube
- Master System
- Mega Drive
- Neo Geo Pocket
- NES
- Nintendo 64
- Nintendo DS
- PC-Engine
- Sega Saturn
- SNES
- Wii
- WiiWare
Fixes #302
plugins/amiga/src/amiga-plugin.vala | 3 ++-
plugins/atari-2600/src/atari-2600-plugin.vala | 3 ++-
plugins/atari-7800/src/atari-7800-plugin.vala | 3 ++-
plugins/dreamcast/src/dreamcast-plugin.vala | 3 ++-
.../src/game-boy-advance-plugin.vala | 3 ++-
plugins/game-boy/src/game-boy-plugin.vala | 3 ++-
plugins/game-cube/src/game-cube-plugin.vala | 3 ++-
.../master-system/src/master-system-plugin.vala | 3 ++-
plugins/mega-drive/src/mega-drive-plugin.vala | 3 ++-
.../neo-geo-pocket/src/neo-geo-pocket-plugin.vala | 3 ++-
plugins/nes/src/nes-plugin.vala | 3 ++-
plugins/nintendo-64/src/nintendo-64-plugin.vala | 3 ++-
plugins/nintendo-ds/src/nintendo-ds-plugin.vala | 3 ++-
plugins/pc-engine/src/pc-engine-plugin.vala | 3 ++-
plugins/sega-saturn/src/sega-saturn-plugin.vala | 3 ++-
plugins/snes/src/snes-plugin.vala | 3 ++-
plugins/wii-ware/src/wii-ware-plugin.vala | 3 ++-
plugins/wii/src/wii-plugin.vala | 3 ++-
18 files changed, 36 insertions(+), 18 deletions(-)
---
diff --git a/plugins/amiga/src/amiga-plugin.vala b/plugins/amiga/src/amiga-plugin.vala
index 2294975..047aa46 100644
--- a/plugins/amiga/src/amiga-plugin.vala
+++ b/plugins/amiga/src/amiga-plugin.vala
@@ -19,7 +19,8 @@ private class Games.AmigaPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/atari-2600/src/atari-2600-plugin.vala b/plugins/atari-2600/src/atari-2600-plugin.vala
index d1916d6..8d1833e 100644
--- a/plugins/atari-2600/src/atari-2600-plugin.vala
+++ b/plugins/atari-2600/src/atari-2600-plugin.vala
@@ -19,7 +19,8 @@ private class Games.Atari2600 : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/atari-7800/src/atari-7800-plugin.vala b/plugins/atari-7800/src/atari-7800-plugin.vala
index 8a04aab..b9fff2f 100644
--- a/plugins/atari-7800/src/atari-7800-plugin.vala
+++ b/plugins/atari-7800/src/atari-7800-plugin.vala
@@ -19,7 +19,8 @@ private class Games.Atari7800 : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index aac297f..c27b334 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -22,7 +22,8 @@ private class Games.DreamcastPlugin : Object, Plugin {
var uid = new DreamcastUid (header);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
b/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
index b40e6fe..05a6eb0 100644
--- a/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
+++ b/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
@@ -19,7 +19,8 @@ private class Games.GameBoyAdvancePlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/game-boy/src/game-boy-plugin.vala b/plugins/game-boy/src/game-boy-plugin.vala
index d2c92e0..dd9172f 100644
--- a/plugins/game-boy/src/game-boy-plugin.vala
+++ b/plugins/game-boy/src/game-boy-plugin.vala
@@ -23,7 +23,8 @@ private class Games.GameBoyPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index 4635a13..aeabbe4 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -22,7 +22,8 @@ private class Games.GameCubePlugin : Object, Plugin {
var uid = new GameCubeUid (header);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/master-system/src/master-system-plugin.vala
b/plugins/master-system/src/master-system-plugin.vala
index e975c65..b39c8d9 100644
--- a/plugins/master-system/src/master-system-plugin.vala
+++ b/plugins/master-system/src/master-system-plugin.vala
@@ -23,7 +23,8 @@ private class Games.MasterSystemPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/mega-drive/src/mega-drive-plugin.vala b/plugins/mega-drive/src/mega-drive-plugin.vala
index 13c8935..35b5b48 100644
--- a/plugins/mega-drive/src/mega-drive-plugin.vala
+++ b/plugins/mega-drive/src/mega-drive-plugin.vala
@@ -23,7 +23,8 @@ private class Games.MegaDrivePlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
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 b915942..7989e15 100644
--- a/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
+++ b/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
@@ -19,7 +19,8 @@ private class Games.NeoGeoPocketPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/nes/src/nes-plugin.vala b/plugins/nes/src/nes-plugin.vala
index 0e05eb7..a0b0ad4 100644
--- a/plugins/nes/src/nes-plugin.vala
+++ b/plugins/nes/src/nes-plugin.vala
@@ -19,7 +19,8 @@ private class Games.NesPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/nintendo-64/src/nintendo-64-plugin.vala b/plugins/nintendo-64/src/nintendo-64-plugin.vala
index 1c25f39..8dbef9d 100644
--- a/plugins/nintendo-64/src/nintendo-64-plugin.vala
+++ b/plugins/nintendo-64/src/nintendo-64-plugin.vala
@@ -19,7 +19,8 @@ private class Games.Nintendo64Plugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 2ec1e02..19b07d0 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -19,7 +19,8 @@ private class Games.NintendoDsPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new NintendoDsIcon (uri);
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/pc-engine/src/pc-engine-plugin.vala b/plugins/pc-engine/src/pc-engine-plugin.vala
index 0b58af8..5c1ecf7 100644
--- a/plugins/pc-engine/src/pc-engine-plugin.vala
+++ b/plugins/pc-engine/src/pc-engine-plugin.vala
@@ -19,7 +19,8 @@ private class Games.PcEnginePlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index e0668ae..f31052d 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -25,7 +25,8 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
var uid = new SegaSaturnUid (header);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/snes/src/snes-plugin.vala b/plugins/snes/src/snes-plugin.vala
index e9924d9..66fd07e 100644
--- a/plugins/snes/src/snes-plugin.vala
+++ b/plugins/snes/src/snes-plugin.vala
@@ -19,7 +19,8 @@ private class Games.SnesPlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/wii-ware/src/wii-ware-plugin.vala b/plugins/wii-ware/src/wii-ware-plugin.vala
index 4c871d2..dd41fdd 100644
--- a/plugins/wii-ware/src/wii-ware-plugin.vala
+++ b/plugins/wii-ware/src/wii-ware-plugin.vala
@@ -19,7 +19,8 @@ private class Games.WiiWarePlugin : Object, Plugin {
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 23dad2b..c7fb75f 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -22,7 +22,8 @@ private class Games.WiiPlugin : Object, Plugin {
var uid = new WiiUid (header);
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
- var cover = new DummyCover ();
+ var media = new GriloMedia (title, MIME_TYPE);
+ var cover = new GriloCover (media, uid);
var runner = new RetroRunner (MODULE_BASENAME, uri, uid, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]