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



commit 8dae183ea393ade9ffc6603835461b2c518fcb52
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/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 ++++
 14 files changed, 56 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 98e299a0..77ca8b28 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 cf53e3b1..a560e03e 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 e12737da..106ee4ef 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/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 65f460cb..18c38e57 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 28600955..be379a2c 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 8752ebb3..f60867f2 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 9e27b8e9..1015adfa 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 88ac0400..b926c54b 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 591757ed..1eecf092 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]