[gnome-games/wip/exalm/platform-preferences: 43/65] plugins: Register platforms



commit b0ff3ba96f970ec2b9c87f5ca4f83e6d3b71e1cc
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Aug 7 20:54:02 2018 +0500

    plugins: Register platforms

 plugins/desktop/src/desktop-plugin.vala             | 4 ++++
 plugins/dreamcast/src/dreamcast-plugin.vala         | 4 ++++
 plugins/game-cube/src/game-cube-plugin.vala         | 4 ++++
 plugins/libretro/src/libretro-plugin.vala           | 4 ++++
 plugins/love/src/love-plugin.vala                   | 4 ++++
 plugins/mame/src/mame-plugin.vala                   | 4 ++++
 plugins/ms-dos/src/ms-dos-plugin.vala               | 4 ++++
 plugins/nintendo-ds/src/nintendo-ds-plugin.vala     | 4 ++++
 plugins/playstation/src/playstation-plugin.vala     | 4 ++++
 plugins/sega-cd/src/sega-cd-plugin.vala             | 4 ++++
 plugins/sega-saturn/src/sega-saturn-plugin.vala     | 4 ++++
 plugins/steam/src/steam-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 ++++
 15 files changed, 60 insertions(+)
---
diff --git a/plugins/desktop/src/desktop-plugin.vala b/plugins/desktop/src/desktop-plugin.vala
index 62d51582..7cfc27ad 100644
--- a/plugins/desktop/src/desktop-plugin.vala
+++ b/plugins/desktop/src/desktop-plugin.vala
@@ -11,6 +11,10 @@ private class Games.DesktopPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index cf20a234..1909984a 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -11,6 +11,10 @@ private class Games.DreamcastPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index b05cb103..160397fe 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -11,6 +11,10 @@ private class Games.GameCubePlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/libretro/src/libretro-plugin.vala b/plugins/libretro/src/libretro-plugin.vala
index 0ba4c557..75ec64b9 100644
--- a/plugins/libretro/src/libretro-plugin.vala
+++ b/plugins/libretro/src/libretro-plugin.vala
@@ -11,6 +11,10 @@ private class Games.LibretroPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public UriSource[] get_uri_sources () {
                var source = new LibretroUriSource ();
 
diff --git a/plugins/love/src/love-plugin.vala b/plugins/love/src/love-plugin.vala
index dbb1253f..add7c237 100644
--- a/plugins/love/src/love-plugin.vala
+++ b/plugins/love/src/love-plugin.vala
@@ -12,6 +12,10 @@ private class Games.LovePlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/mame/src/mame-plugin.vala b/plugins/mame/src/mame-plugin.vala
index 61271639..099fc5bb 100644
--- a/plugins/mame/src/mame-plugin.vala
+++ b/plugins/mame/src/mame-plugin.vala
@@ -11,6 +11,10 @@ private class Games.MamePlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/ms-dos/src/ms-dos-plugin.vala b/plugins/ms-dos/src/ms-dos-plugin.vala
index 31789f56..9f7c08e9 100644
--- a/plugins/ms-dos/src/ms-dos-plugin.vala
+++ b/plugins/ms-dos/src/ms-dos-plugin.vala
@@ -12,6 +12,10 @@ private class Games.MsDosPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public UriGameFactory[] get_uri_game_factories () {
                var game_uri_adapter = new GenericGameUriAdapter (game_for_uri);
                var factory = new GenericUriGameFactory (game_uri_adapter);
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index c0f08bba..aebbef56 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -12,6 +12,10 @@ private class Games.NintendoDsPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/playstation/src/playstation-plugin.vala b/plugins/playstation/src/playstation-plugin.vala
index b3f37d6a..fcd1ee0a 100644
--- a/plugins/playstation/src/playstation-plugin.vala
+++ b/plugins/playstation/src/playstation-plugin.vala
@@ -11,6 +11,10 @@ private class Games.PlayStation : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/sega-cd/src/sega-cd-plugin.vala b/plugins/sega-cd/src/sega-cd-plugin.vala
index 8201b939..8eec7c17 100644
--- a/plugins/sega-cd/src/sega-cd-plugin.vala
+++ b/plugins/sega-cd/src/sega-cd-plugin.vala
@@ -21,6 +21,10 @@ private class Games.SegaCDPlugin : Object, Plugin {
                platform_sega_cd_32x = new GenericPlatform (SEGA_CD_32X_PLATFORM_ID, 
SEGA_CD_32X_PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform_sega_cd, platform_sega_cd_32x };
+       }
+
        public string[] get_mime_types () {
                return { CUE_MIME_TYPE, SEGA_CD_MIME_TYPE };
        }
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index 80b4ecd5..e740283c 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -12,6 +12,10 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return {
                        CUE_MIME_TYPE,
diff --git a/plugins/steam/src/steam-plugin.vala b/plugins/steam/src/steam-plugin.vala
index 6f858e8d..0e60dd90 100644
--- a/plugins/steam/src/steam-plugin.vala
+++ b/plugins/steam/src/steam-plugin.vala
@@ -22,6 +22,10 @@ private class Games.SteamPlugin : Object, Plugin {
                icon_theme.append_search_path (home + STEAM_FLATPAK_DIR + "/data/icons");
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public UriSource[] get_uri_sources () {
                // Steam's installation path can be found in its registry.
                var home = Environment.get_home_dir ();
diff --git a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala 
b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
index fc1f72f4..dfa97800 100644
--- a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
+++ b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
@@ -15,6 +15,10 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { CUE_MIME_TYPE };
        }
diff --git a/plugins/virtual-boy/src/virtual-boy-plugin.vala b/plugins/virtual-boy/src/virtual-boy-plugin.vala
index c61c5bb5..d7895270 100644
--- a/plugins/virtual-boy/src/virtual-boy-plugin.vala
+++ b/plugins/virtual-boy/src/virtual-boy-plugin.vala
@@ -12,6 +12,10 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 519d6552..600af436 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -11,6 +11,10 @@ private class Games.WiiPlugin : Object, Plugin {
                platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
        }
 
+       public Platform[] get_platforms () {
+               return { platform };
+       }
+
        public string[] get_mime_types () {
                return { MIME_TYPE };
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]