[gnome-games/wip/exalm/rebrand: 95/124] ms-dos: Move into the app
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 95/124] ms-dos: Move into the app
- Date: Sat, 19 Jun 2021 14:37:46 +0000 (UTC)
commit 6274cd63dbe30193c34b8630e2faccbbc1d9702f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 30 18:05:30 2021 +0500
ms-dos: Move into the app
meson_options.txt | 1 -
plugins/meson.build | 1 -
plugins/ms-dos/data/meson.build | 1 -
plugins/ms-dos/data/ms-dos.plugin | 6 ------
plugins/ms-dos/meson.build | 2 --
plugins/ms-dos/src/meson.build | 17 ---------------
plugins/ms-dos/src/ms-dos-plugin.vala | 24 ----------------------
src/meson.build | 2 ++
.../platforms/ms-dos}/ms-dos-runner.vala | 0
src/platforms/platform-register.vala | 10 +++++++++
10 files changed, 12 insertions(+), 52 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index b35029f8..20a25bdc 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 ('ms-dos-plugin', description: 'Support for MS-DOS games', type: 'boolean')
option ('nintendo-3ds-plugin', description: 'Support for Nintendo 3DS games', type: 'boolean')
option ('nintendo-64-plugin', description: 'Support for Nintendo 64 games', type: 'boolean')
option ('nintendo-ds-plugin', description: 'Support for Nintendo DS games', type: 'boolean')
diff --git a/plugins/meson.build b/plugins/meson.build
index bd7e1404..f45bb874 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,5 +1,4 @@
plugins = [
- 'ms-dos',
'nintendo-3ds',
'nintendo-64',
'nintendo-ds',
diff --git a/src/meson.build b/src/meson.build
index 12aaf2cb..ef289c58 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -93,6 +93,8 @@ vala_sources = [
'platforms/mame/mame-game-info.vala',
'platforms/mame/mame-parser.vala',
+ 'platforms/ms-dos/ms-dos-runner.vala',
+
'platforms/platform.vala',
'platforms/platform-model.vala',
'platforms/platform-register.vala',
diff --git a/plugins/ms-dos/src/ms-dos-runner.vala b/src/platforms/ms-dos/ms-dos-runner.vala
similarity index 100%
rename from plugins/ms-dos/src/ms-dos-runner.vala
rename to src/platforms/ms-dos/ms-dos-runner.vala
diff --git a/src/platforms/platform-register.vala b/src/platforms/platform-register.vala
index fcc1eb66..0bbefde0 100644
--- a/src/platforms/platform-register.vala
+++ b/src/platforms/platform-register.vala
@@ -163,6 +163,16 @@ private class Games.PlatformRegister : Object {
);
add_platform (platform);
+ platform = new Platform (
+ "MSDOS",
+ _("MS-DOS"),
+ "application/x-ms-dos-executable",
+ "ms-dos"
+ );
+ platform.autodiscovery = false;
+ platform.runner_type = typeof (MsDosRunner);
+ add_platform (platform);
+
platform = new Platform (
"NeoGeoPocket",
_("Neo Geo Pocket"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]