[gnome-games/wip/exalm/rebrand: 101/124] sega-saturn: Move into the app
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 101/124] sega-saturn: Move into the app
- Date: Sat, 19 Jun 2021 14:37:46 +0000 (UTC)
commit 3888a826108d9b05f127c50ec0ae2b77258dcbad
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 30 21:04:42 2021 +0500
sega-saturn: Move into the app
meson_options.txt | 2 --
plugins/meson.build | 1 -
plugins/sega-saturn/data/meson.build | 1 -
plugins/sega-saturn/data/sega-saturn.plugin | 6 -----
plugins/sega-saturn/meson.build | 2 --
plugins/sega-saturn/src/meson.build | 19 ----------------
plugins/sega-saturn/src/sega-saturn-plugin.vala | 26 ----------------------
src/meson.build | 4 ++++
src/platforms/platform-register.vala | 10 +++++++++
.../platforms/sega-saturn}/sega-saturn-error.vala | 0
.../platforms/sega-saturn}/sega-saturn-header.vala | 0
.../platforms/sega-saturn}/sega-saturn-parser.vala | 0
12 files changed, 14 insertions(+), 57 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index 94d61d5a..cf12935f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,8 +10,6 @@ option (
# Plugins
# This must mirror the list in plugins/meson.build
-option ('sega-saturn-plugin', description: 'Support for Sega Saturn games', type: 'boolean')
-option ('steam-plugin', description: 'Support for Steam games', type: 'boolean')
option ('turbografx-cd-plugin', description: 'Support for TurboGrafx-CD games', type: 'boolean')
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 c85e83f7..4b6839d0 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,5 +1,4 @@
plugins = [
- 'sega-saturn',
'turbografx-cd',
'virtual-boy',
'wii',
diff --git a/src/meson.build b/src/meson.build
index 532d2c9c..fae7f23a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -123,6 +123,10 @@ vala_sources = [
'platforms/sega-cd/sega-cd-parser.vala',
'platforms/sega-cd/sega-cd-system.vala',
+ 'platforms/sega-saturn/sega-saturn-error.vala',
+ 'platforms/sega-saturn/sega-saturn-header.vala',
+ 'platforms/sega-saturn/sega-saturn-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 57eae329..9024fdc5 100644
--- a/src/platforms/platform-register.vala
+++ b/src/platforms/platform-register.vala
@@ -280,6 +280,16 @@ private class Games.PlatformRegister : Object {
);
add_platform (platform);
+ platform = new Platform.with_mime_types (
+ "SegaSaturn",
+ _("Sega Saturn"),
+ { "application/x-cue", "application/x-saturn-rom" },
+ "application/x-saturn-rom",
+ "sega-saturn"
+ );
+ platform.parser_type = typeof (SegaSaturnParser);
+ add_platform (platform);
+
platform = new Platform (
"SegaPico",
_("Sega Pico"),
diff --git a/plugins/sega-saturn/src/sega-saturn-error.vala b/src/platforms/sega-saturn/sega-saturn-error.vala
similarity index 100%
rename from plugins/sega-saturn/src/sega-saturn-error.vala
rename to src/platforms/sega-saturn/sega-saturn-error.vala
diff --git a/plugins/sega-saturn/src/sega-saturn-header.vala
b/src/platforms/sega-saturn/sega-saturn-header.vala
similarity index 100%
rename from plugins/sega-saturn/src/sega-saturn-header.vala
rename to src/platforms/sega-saturn/sega-saturn-header.vala
diff --git a/plugins/sega-saturn/src/sega-saturn-parser.vala
b/src/platforms/sega-saturn/sega-saturn-parser.vala
similarity index 100%
rename from plugins/sega-saturn/src/sega-saturn-parser.vala
rename to src/platforms/sega-saturn/sega-saturn-parser.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]