[gnome-games/wip/exalm/rebrand: 44/124] game-cube: Use RetroRunnerFactory
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 44/124] game-cube: Use RetroRunnerFactory
- Date: Sat, 19 Jun 2021 14:37:44 +0000 (UTC)
commit b4ec04c2a0caf9702a9143bde803d5302451b53b
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Apr 12 17:34:48 2021 +0500
game-cube: Use RetroRunnerFactory
plugins/game-cube/src/game-cube-plugin.vala | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index e64f8715..181d9433 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -29,8 +29,7 @@ private class Games.GameCubePlugin : Object, Plugin {
}
public RunnerFactory[] get_runner_factories () {
- var factory = new GenericRunnerFactory (create_runner);
- factory.add_platform (platform);
+ var factory = new RetroRunnerFactory (platform, typeof (GameCubeRunner));
return { factory };
}
@@ -58,12 +57,6 @@ private class Games.GameCubePlugin : Object, Plugin {
return game;
}
-
- private static Runner? create_runner (Game game) throws Error {
- var core_source = new RetroCoreSource (platform);
-
- return new GameCubeRunner (game, core_source);
- }
}
[ModuleInit]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]