[gnome-games/wip/exalm/rebrand: 40/124] retro-runner: Make from_source() the main constructor
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 40/124] retro-runner: Make from_source() the main constructor
- Date: Sat, 19 Jun 2021 14:37:44 +0000 (UTC)
commit 6976ae3689666ed20f2d8c24b3cfb17b89e11472
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Mar 29 21:25:03 2021 +0500
retro-runner: Make from_source() the main constructor
plugins/game-cube/src/game-cube-runner.vala | 2 +-
plugins/ms-dos/src/ms-dos-plugin.vala | 2 +-
plugins/nintendo-3ds/src/nintendo-3ds-runner.vala | 2 +-
plugins/nintendo-64/src/nintendo-64-runner.vala | 2 +-
plugins/nintendo-ds/src/nintendo-ds-runner.vala | 2 +-
src/retro/retro-runner-factory.vala | 2 +-
src/retro/retro-runner.vala | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plugins/game-cube/src/game-cube-runner.vala b/plugins/game-cube/src/game-cube-runner.vala
index fd7cd639..fad78db7 100644
--- a/plugins/game-cube/src/game-cube-runner.vala
+++ b/plugins/game-cube/src/game-cube-runner.vala
@@ -2,7 +2,7 @@
private class Games.GameCubeRunner : RetroRunner {
public GameCubeRunner (Game game, RetroCoreSource source) {
- base.from_source (game, source);
+ base (game, source);
}
private bool is_dolphin () {
diff --git a/plugins/ms-dos/src/ms-dos-plugin.vala b/plugins/ms-dos/src/ms-dos-plugin.vala
index 118dccfe..dbfa14e2 100644
--- a/plugins/ms-dos/src/ms-dos-plugin.vala
+++ b/plugins/ms-dos/src/ms-dos-plugin.vala
@@ -47,7 +47,7 @@ private class Games.MsDosPlugin : Object, Plugin {
private static Runner? create_runner (Game game) throws Error {
var core_source = new RetroCoreSource (platform);
- var runner = new RetroRunner.from_source (game, core_source);
+ var runner = new RetroRunner (game, core_source);
runner.input_capabilities = new GenericInputCapabilities (true, false);
diff --git a/plugins/nintendo-3ds/src/nintendo-3ds-runner.vala
b/plugins/nintendo-3ds/src/nintendo-3ds-runner.vala
index e3514998..34283287 100644
--- a/plugins/nintendo-3ds/src/nintendo-3ds-runner.vala
+++ b/plugins/nintendo-3ds/src/nintendo-3ds-runner.vala
@@ -35,7 +35,7 @@ private class Games.Nintendo3DsRunner : RetroRunner {
}
public Nintendo3DsRunner (Game game, RetroCoreSource source) {
- base.from_source (game, source);
+ base (game, source);
}
private bool core_supports_layouts () {
diff --git a/plugins/nintendo-64/src/nintendo-64-runner.vala b/plugins/nintendo-64/src/nintendo-64-runner.vala
index ca45cf41..d45acdde 100644
--- a/plugins/nintendo-64/src/nintendo-64-runner.vala
+++ b/plugins/nintendo-64/src/nintendo-64-runner.vala
@@ -39,7 +39,7 @@ private class Games.Nintendo64Runner : RetroRunner {
}
public Nintendo64Runner (Game game, RetroCoreSource source) {
- base.from_source (game, source);
+ base (game, source);
}
private bool has_pak_options (string prefix) {
diff --git a/plugins/nintendo-ds/src/nintendo-ds-runner.vala b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
index d34d9da0..9dbb58c2 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-runner.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
@@ -66,7 +66,7 @@ private class Games.NintendoDsRunner : RetroRunner {
}
public NintendoDsRunner (Game game, RetroCoreSource source) {
- base.from_source (game, source);
+ base (game, source);
}
private bool core_supports_layouts () {
diff --git a/src/retro/retro-runner-factory.vala b/src/retro/retro-runner-factory.vala
index 3fa2dd9a..296ddc5f 100644
--- a/src/retro/retro-runner-factory.vala
+++ b/src/retro/retro-runner-factory.vala
@@ -14,6 +14,6 @@ public class Games.RetroRunnerFactory : Object, RunnerFactory {
public Runner? create_runner (Game game) throws Error {
var core_source = new RetroCoreSource (platform);
- return new RetroRunner.from_source (game, core_source);
+ return new RetroRunner (game, core_source);
}
}
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 8f2d5611..0d2209ce 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -63,7 +63,7 @@ public class Games.RetroRunner : Object, Runner {
private bool core_loaded;
private bool is_error;
- public RetroRunner.from_source (Game game, RetroCoreSource source) {
+ public RetroRunner (Game game, RetroCoreSource source) {
this.game = game;
core_source = source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]