[gnome-games/wip/exalm/rebrand: 104/124] wii: Move into the app
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 104/124] wii: Move into the app
- Date: Sat, 19 Jun 2021 14:37:46 +0000 (UTC)
commit 72bd999b9fa627df5e8c343cab673efe46d0b88b
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 30 21:19:32 2021 +0500
wii: Move into the app
meson_options.txt | 4 ----
plugins/meson.build | 1 -
plugins/wii/data/meson.build | 1 -
plugins/wii/data/wii.plugin | 6 ------
plugins/wii/meson.build | 2 --
plugins/wii/src/meson.build | 18 ----------------
plugins/wii/src/wii-plugin.vala | 24 ----------------------
src/meson.build | 3 +++
src/platforms/platform-register.vala | 9 ++++++++
.../wii/src => src/platforms/wii}/wii-header.vala | 0
.../wii/src => src/platforms/wii}/wii-parser.vala | 0
11 files changed, 12 insertions(+), 56 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index 6a6c03b9..4c5cc399 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,7 +7,3 @@ option (
],
value: 'default'
)
-
-# Plugins
-# This must mirror the list in plugins/meson.build
-option ('wii-plugin', description: 'Support for Wii games', type: 'boolean')
diff --git a/plugins/meson.build b/plugins/meson.build
index ec4f458e..ae74c75b 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,5 +1,4 @@
plugins = [
- 'wii',
]
foreach plugin_name : plugins
diff --git a/src/meson.build b/src/meson.build
index a21e63e7..802fb106 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -133,6 +133,9 @@ vala_sources = [
'platforms/virtual-boy/virtual-boy-header.vala',
'platforms/virtual-boy/virtual-boy-parser.vala',
+ 'platforms/wii/wii-header.vala',
+ 'platforms/wii/wii-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 8de2b35f..3387939c 100644
--- a/src/platforms/platform-register.vala
+++ b/src/platforms/platform-register.vala
@@ -344,6 +344,15 @@ private class Games.PlatformRegister : Object {
platform.parser_type = typeof (VirtualBoyParser);
add_platform (platform);
+ platform = new Platform (
+ "Wii",
+ _("Wii"),
+ "application/x-wii-rom",
+ "wii"
+ );
+ platform.parser_type = typeof (WiiParser);
+ add_platform (platform);
+
platform = new Platform (
"WiiWare",
_("WiiWare"),
diff --git a/plugins/wii/src/wii-header.vala b/src/platforms/wii/wii-header.vala
similarity index 100%
rename from plugins/wii/src/wii-header.vala
rename to src/platforms/wii/wii-header.vala
diff --git a/plugins/wii/src/wii-parser.vala b/src/platforms/wii/wii-parser.vala
similarity index 100%
rename from plugins/wii/src/wii-parser.vala
rename to src/platforms/wii/wii-parser.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]