[gnome-games/wip/exalm/rebrand: 85/102] virtual-boy: Move into the app




commit b150af33e2da93b5ad166fda4e7bca51ad447626
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Mar 30 21:16:35 2021 +0500

    virtual-boy: Move into the app

 meson_options.txt                                  |  1 -
 plugins/meson.build                                |  1 -
 plugins/virtual-boy/data/meson.build               |  1 -
 plugins/virtual-boy/data/virtual-boy.plugin        |  6 ------
 plugins/virtual-boy/meson.build                    |  2 --
 plugins/virtual-boy/src/meson.build                | 18 ----------------
 plugins/virtual-boy/src/virtual-boy-plugin.vala    | 24 ----------------------
 src/meson.build                                    |  3 +++
 src/platforms/platform-register.vala               |  9 ++++++++
 .../platforms/virtual-boy}/virtual-boy-header.vala |  0
 .../platforms/virtual-boy}/virtual-boy-parser.vala |  0
 11 files changed, 12 insertions(+), 53 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index d131d3c4..6a6c03b9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,5 +10,4 @@ option (
 
 # Plugins
 # This must mirror the list in plugins/meson.build
-option ('virtual-boy-plugin',   description: 'Support for Virtual Boy games',   type: 'boolean')
 option ('wii-plugin',           description: 'Support for Wii games',           type: 'boolean')
diff --git a/plugins/meson.build b/plugins/meson.build
index bbd8f492..ec4f458e 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,5 +1,4 @@
 plugins = [
-  'virtual-boy',
   'wii',
 ]
 
diff --git a/src/meson.build b/src/meson.build
index 21b7879e..77c4cce8 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -129,6 +129,9 @@ vala_sources = [
   'platforms/turbografx-cd/turbografx-cd-error.vala',
   'platforms/turbografx-cd/turbografx-cd-parser.vala',
 
+  'platforms/virtual-boy/virtual-boy-header.vala',
+  'platforms/virtual-boy/virtual-boy-parser.vala',
+
   'platforms/platform.vala',
   'platforms/platform-model.vala',
   'platforms/platform-register.vala',
diff --git a/src/platforms/platform-register.vala b/src/platforms/platform-register.vala
index 5a131c4d..8d63d250 100644
--- a/src/platforms/platform-register.vala
+++ b/src/platforms/platform-register.vala
@@ -334,6 +334,15 @@ private class Games.PlatformRegister : Object {
                platform.parser_type = typeof (TurboGrafxCDParser);
                add_platform (platform);
 
+               platform = new Platform (
+                       "VirtualBoy",
+                       _("Virtual Boy"),
+                       "application/x-virtual-boy-rom",
+                       "virtual-boy"
+               );
+               platform.parser_type = typeof (VirtualBoyParser);
+               add_platform (platform);
+
                platform = new Platform (
                        "WiiWare",
                        _("WiiWare"),
diff --git a/plugins/virtual-boy/src/virtual-boy-header.vala 
b/src/platforms/virtual-boy/virtual-boy-header.vala
similarity index 100%
rename from plugins/virtual-boy/src/virtual-boy-header.vala
rename to src/platforms/virtual-boy/virtual-boy-header.vala
diff --git a/plugins/virtual-boy/src/virtual-boy-parser.vala 
b/src/platforms/virtual-boy/virtual-boy-parser.vala
similarity index 100%
rename from plugins/virtual-boy/src/virtual-boy-parser.vala
rename to src/platforms/virtual-boy/virtual-boy-parser.vala


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