[gnome-games/wip/exalm/rebrand: 66/124] plugins: Stop subclassing Platform
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 66/124] plugins: Stop subclassing Platform
- Date: Sat, 19 Jun 2021 14:37:45 +0000 (UTC)
commit a1608f33c4e0072f665ef273f9d1b05c1a6aad52
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 30 01:43:54 2021 +0500
plugins: Stop subclassing Platform
plugins/game-cube/src/game-cube-platform.vala | 7 -------
plugins/game-cube/src/game-cube-plugin.vala | 2 +-
plugins/game-cube/src/meson.build | 1 -
plugins/nintendo-3ds/src/meson.build | 1 -
plugins/nintendo-3ds/src/nintendo-3ds-platform.vala | 7 -------
plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala | 2 +-
plugins/nintendo-64/src/meson.build | 1 -
plugins/nintendo-64/src/nintendo-64-platform.vala | 7 -------
plugins/nintendo-64/src/nintendo-64-plugin.vala | 2 +-
plugins/nintendo-ds/src/meson.build | 1 -
plugins/nintendo-ds/src/nintendo-ds-platform.vala | 7 -------
plugins/nintendo-ds/src/nintendo-ds-plugin.vala | 4 ++--
12 files changed, 5 insertions(+), 37 deletions(-)
---
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index 6ca2e368..99248f68 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -9,7 +9,7 @@ private class Games.GameCubePlugin : Object, Plugin {
private static Platform platform;
static construct {
- platform = new GameCubePlatform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE, PLATFORM_UID_PREFIX);
+ platform = new Platform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE, PLATFORM_UID_PREFIX);
platform.runner_type = typeof (GameCubeRunner);
}
diff --git a/plugins/game-cube/src/meson.build b/plugins/game-cube/src/meson.build
index 12d82e6c..49ab86b0 100644
--- a/plugins/game-cube/src/meson.build
+++ b/plugins/game-cube/src/meson.build
@@ -1,6 +1,5 @@
vala_sources = [
'game-cube-header.vala',
- 'game-cube-platform.vala',
'game-cube-plugin.vala',
'game-cube-runner.vala',
]
diff --git a/plugins/nintendo-3ds/src/meson.build b/plugins/nintendo-3ds/src/meson.build
index ff9b586f..726955f0 100644
--- a/plugins/nintendo-3ds/src/meson.build
+++ b/plugins/nintendo-3ds/src/meson.build
@@ -1,6 +1,5 @@
vala_sources = [
'nintendo-3ds-layout.vala',
- 'nintendo-3ds-platform.vala',
'nintendo-3ds-plugin.vala',
'nintendo-3ds-runner.vala',
]
diff --git a/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
b/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
index afefb4a7..5aaeedcc 100644
--- a/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
+++ b/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
@@ -11,7 +11,7 @@ private class Games.Nintendo3DsPlugin : Object, Plugin {
private static Platform platform;
static construct {
- platform = new Nintendo3DsPlatform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPES, 3DS_MIME_TYPE,
PLATFORM_UID_PREFIX);
+ platform = new Platform.with_mime_types (PLATFORM_ID, PLATFORM_NAME, MIME_TYPES,
3DS_MIME_TYPE, PLATFORM_UID_PREFIX);
platform.runner_type = typeof (Nintendo3DsRunner);
}
diff --git a/plugins/nintendo-64/src/meson.build b/plugins/nintendo-64/src/meson.build
index 3bcb4484..19a722d4 100644
--- a/plugins/nintendo-64/src/meson.build
+++ b/plugins/nintendo-64/src/meson.build
@@ -2,7 +2,6 @@ vala_sources = [
'nintendo-64-pak.vala',
'nintendo-64-pak-controller.vala',
'nintendo-64-pak-switcher.vala',
- 'nintendo-64-platform.vala',
'nintendo-64-plugin.vala',
'nintendo-64-runner.vala',
'nintendo-64-snapshot.vala',
diff --git a/plugins/nintendo-64/src/nintendo-64-plugin.vala b/plugins/nintendo-64/src/nintendo-64-plugin.vala
index dc4f8036..def2c606 100644
--- a/plugins/nintendo-64/src/nintendo-64-plugin.vala
+++ b/plugins/nintendo-64/src/nintendo-64-plugin.vala
@@ -9,7 +9,7 @@ private class Games.Nintendo64Plugin : Object, Plugin {
private static Platform platform;
static construct {
- platform = new Nintendo64Platform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE,
PLATFORM_UID_PREFIX);
+ platform = new Platform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE, PLATFORM_UID_PREFIX);
platform.snapshot_type = typeof (Nintendo64Snapshot);
platform.runner_type = typeof (Nintendo64Runner);
}
diff --git a/plugins/nintendo-ds/src/meson.build b/plugins/nintendo-ds/src/meson.build
index 91d70d26..62cda3ce 100644
--- a/plugins/nintendo-ds/src/meson.build
+++ b/plugins/nintendo-ds/src/meson.build
@@ -1,7 +1,6 @@
vala_sources = [
'nintendo-ds-icon.vala',
'nintendo-ds-layout.vala',
- 'nintendo-ds-platform.vala',
'nintendo-ds-plugin.vala',
'nintendo-ds-runner.vala',
'nintendo-ds-snapshot.vala',
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 6e132855..401c106d 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -6,10 +6,10 @@ private class Games.NintendoDsPlugin : Object, Plugin {
private const string PLATFORM_NAME = _("Nintendo DS");
private const string PLATFORM_UID_PREFIX = "nintendo-ds";
- private static NintendoDsPlatform platform;
+ private static Platform platform;
static construct {
- platform = new NintendoDsPlatform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE,
PLATFORM_UID_PREFIX);
+ platform = new Platform (PLATFORM_ID, PLATFORM_NAME, MIME_TYPE, PLATFORM_UID_PREFIX);
platform.snapshot_type = typeof (NintendoDsSnapshot);
platform.runner_type = typeof (NintendoDsRunner);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]