[gnome-games] plugins: Allow retro games to get description & rating
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] plugins: Allow retro games to get description & rating
- Date: Tue, 24 Jul 2018 06:47:59 +0000 (UTC)
commit 4752a0fde96ef3c20edb09266f4c9230ae972dbb
Author: 1PunMan <saurabhsingh412 gmail com>
Date: Tue Mar 20 04:14:14 2018 +0530
plugins: Allow retro games to get description & rating
plugins/dreamcast/src/dreamcast-plugin.vala | 4 ++++
plugins/game-cube/src/game-cube-plugin.vala | 4 ++++
plugins/nintendo-ds/src/nintendo-ds-plugin.vala | 4 ++++
plugins/playstation/src/playstation-game-factory.vala | 4 ++++
plugins/sega-cd/src/sega-cd-plugin.vala | 4 ++++
plugins/sega-saturn/src/sega-saturn-plugin.vala | 4 ++++
plugins/turbografx-cd/src/turbografx-cd-plugin.vala | 4 ++++
plugins/virtual-boy/src/virtual-boy-plugin.vala | 4 ++++
plugins/wii/src/wii-plugin.vala | 4 ++++
src/retro/retro-simple-game-uri-adapter.vala | 4 ++++
10 files changed, 40 insertions(+)
---
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index a6a92b80..427434f9 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -33,6 +33,8 @@ private class Games.DreamcastPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (PLATFORM, { MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -44,6 +46,8 @@ private class Games.DreamcastPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index bc647150..80a5b6a5 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -33,6 +33,8 @@ private class Games.GameCubePlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (PLATFORM, { MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -44,6 +46,8 @@ private class Games.GameCubePlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index f3e89a79..20cdee06 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -28,6 +28,8 @@ private class Games.NintendoDsPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
@@ -43,6 +45,8 @@ private class Games.NintendoDsPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/playstation/src/playstation-game-factory.vala
b/plugins/playstation/src/playstation-game-factory.vala
index aee50ed5..83d7386f 100644
--- a/plugins/playstation/src/playstation-game-factory.vala
+++ b/plugins/playstation/src/playstation-game-factory.vala
@@ -148,6 +148,8 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var input_capabilities = new GameinfoDiscIdInputCapabilities (gameinfo, disc_set_id);
var core_source = new RetroCoreSource (PLATFORM, { CUE_MIME_TYPE, PHONY_MIME_TYPE });
var runner = new RetroRunner.for_media_set_and_input_capabilities (core_source, media_set,
uid, input_capabilities, title);
@@ -160,6 +162,8 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/sega-cd/src/sega-cd-plugin.vala b/plugins/sega-cd/src/sega-cd-plugin.vala
index a809ff68..62ea18a0 100644
--- a/plugins/sega-cd/src/sega-cd-plugin.vala
+++ b/plugins/sega-cd/src/sega-cd-plugin.vala
@@ -72,6 +72,8 @@ private class Games.SegaCDPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (platform, mime_types);
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -83,6 +85,8 @@ private class Games.SegaCDPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index a76228fa..be25c931 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -56,6 +56,8 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (PLATFORM, { CUE_MIME_TYPE, SEGA_SATURN_MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -67,6 +69,8 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
index a31b0cd4..827605b2 100644
--- a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
+++ b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
@@ -35,6 +35,8 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (CD_PLATFORM, { CUE_MIME_TYPE, PHONY_MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -46,6 +48,8 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/virtual-boy/src/virtual-boy-plugin.vala b/plugins/virtual-boy/src/virtual-boy-plugin.vala
index 7869288b..e0db9769 100644
--- a/plugins/virtual-boy/src/virtual-boy-plugin.vala
+++ b/plugins/virtual-boy/src/virtual-boy-plugin.vala
@@ -35,6 +35,8 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (PLATFORM, { MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -46,6 +48,8 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index fb854225..c1d5c5fb 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -33,6 +33,8 @@ private class Games.WiiPlugin : Object, Plugin {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (PLATFORM, { MIME_TYPE });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -44,6 +46,8 @@ private class Games.WiiPlugin : Object, Plugin {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
diff --git a/src/retro/retro-simple-game-uri-adapter.vala b/src/retro/retro-simple-game-uri-adapter.vala
index e1341cf1..b46ad17f 100644
--- a/src/retro/retro-simple-game-uri-adapter.vala
+++ b/src/retro/retro-simple-game-uri-adapter.vala
@@ -23,6 +23,8 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
var players = new GriloPlayers (media, uid);
var developer = new GriloDeveloper (media);
var publisher = new GriloPublisher (media);
+ var description = new GriloDescription (media);
+ var rating = new GriloRating (media);
var core_source = new RetroCoreSource (simple_type.platform, { simple_type.mime_type });
var runner = new RetroRunner (core_source, uri, uid, title);
@@ -34,6 +36,8 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
game.set_players (players);
game.set_developer (developer);
game.set_publisher (publisher);
+ game.set_description (description);
+ game.set_rating (rating);
return game;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]