[gnome-games/wip/exalm/rebrand: 47/124] nintendo-3ds: Use RetroRunnerFactory
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 47/124] nintendo-3ds: Use RetroRunnerFactory
- Date: Sat, 19 Jun 2021 14:37:44 +0000 (UTC)
commit 81135e125389a510063fbf2c87ef15db33f2a9a0
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Mar 29 21:43:19 2021 +0500
nintendo-3ds: Use RetroRunnerFactory
plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
b/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
index 6854d719..b7c96e8a 100644
--- a/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
+++ b/plugins/nintendo-3ds/src/nintendo-3ds-plugin.vala
@@ -32,8 +32,7 @@ private class Games.Nintendo3DsPlugin : Object, Plugin {
}
public RunnerFactory[] get_runner_factories () {
- var factory = new GenericRunnerFactory (create_runner);
- factory.add_platform (platform);
+ var factory = new RetroRunnerFactory (platform, typeof (Nintendo3DsRunner));
return { factory };
}
@@ -51,12 +50,6 @@ private class Games.Nintendo3DsPlugin : Object, Plugin {
return game;
}
-
- private static Runner? create_runner (Game game) throws Error {
- var core_source = new RetroCoreSource (platform);
-
- return new Nintendo3DsRunner (game, core_source);
- }
}
[ModuleInit]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]