[gnome-games/wip/exalm/rebrand: 100/124] sega-cd: Move into the app
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 100/124] sega-cd: Move into the app
- Date: Sat, 19 Jun 2021 14:37:46 +0000 (UTC)
commit 039b156c4974e05deaf220d4c5738239edad486a
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 30 20:35:17 2021 +0500
sega-cd: Move into the app
meson_options.txt | 1 -
plugins/meson.build | 1 -
plugins/sega-cd/data/meson.build | 1 -
plugins/sega-cd/data/sega-cd.plugin | 6 ----
plugins/sega-cd/meson.build | 2 --
plugins/sega-cd/src/meson.build | 19 -----------
plugins/sega-cd/src/sega-cd-plugin.vala | 38 ----------------------
src/meson.build | 4 +++
src/platforms/platform-register.vala | 22 +++++++++++++
.../platforms/sega-cd}/sega-cd-header.vala | 0
.../platforms/sega-cd}/sega-cd-parser.vala | 0
.../platforms/sega-cd}/sega-cd-system.vala | 0
12 files changed, 26 insertions(+), 68 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index f513dd9e..94d61d5a 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,7 +10,6 @@ option (
# Plugins
# This must mirror the list in plugins/meson.build
-option ('sega-cd-plugin', description: 'Support for Sega CD games', type: 'boolean')
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')
diff --git a/plugins/meson.build b/plugins/meson.build
index 1db92686..c85e83f7 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,5 +1,4 @@
plugins = [
- 'sega-cd',
'sega-saturn',
'turbografx-cd',
'virtual-boy',
diff --git a/src/meson.build b/src/meson.build
index 2a7a6881..532d2c9c 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -119,6 +119,10 @@ vala_sources = [
'platforms/playstation/playstation-header.vala',
'platforms/playstation/playstation-parser.vala',
+ 'platforms/sega-cd/sega-cd-header.vala',
+ 'platforms/sega-cd/sega-cd-parser.vala',
+ 'platforms/sega-cd/sega-cd-system.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 1969f9e3..57eae329 100644
--- a/src/platforms/platform-register.vala
+++ b/src/platforms/platform-register.vala
@@ -240,6 +240,28 @@ private class Games.PlatformRegister : Object {
platform.parser_type = typeof (PlayStationParser);
add_platform (platform);
+ platform = new Platform.with_mime_types (
+ "SegaCD",
+ /* translators: known as "Mega-CD" in most of the world */
+ _("Sega CD"),
+ { "application/x-cue", "application/x-sega-cd-rom" },
+ "application/x-sega-cd-rom",
+ "mega-cd"
+ );
+ platform.parser_type = typeof (SegaCDParser);
+ add_platform (platform);
+
+ platform = new Platform.with_mime_types (
+ "SegaCD32X",
+ /* translators: known as "Mega-CD 32X" in most of the world */
+ _("Sega CD 32X"),
+ { "application/x-cue", "application/x-sega-cd-rom", "application/x-genesis-32x-rom" },
+ "application/x-sega-cd-rom",
+ "mega-cd"
+ );
+ platform.parser_type = typeof (SegaCDParser);
+ add_platform (platform);
+
platform = new Platform (
"Sega32X",
/* translators: known as "Mega Drive 32X", "Mega 32X" or "Super 32X" in other places
*/
diff --git a/plugins/sega-cd/src/sega-cd-header.vala b/src/platforms/sega-cd/sega-cd-header.vala
similarity index 100%
rename from plugins/sega-cd/src/sega-cd-header.vala
rename to src/platforms/sega-cd/sega-cd-header.vala
diff --git a/plugins/sega-cd/src/sega-cd-parser.vala b/src/platforms/sega-cd/sega-cd-parser.vala
similarity index 100%
rename from plugins/sega-cd/src/sega-cd-parser.vala
rename to src/platforms/sega-cd/sega-cd-parser.vala
diff --git a/plugins/sega-cd/src/sega-cd-system.vala b/src/platforms/sega-cd/sega-cd-system.vala
similarity index 100%
rename from plugins/sega-cd/src/sega-cd-system.vala
rename to src/platforms/sega-cd/sega-cd-system.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]