[gnome-games/wip/exalm/rebrand: 45/124] nintendo-ds: Use RetroRunnerFactory




commit daccf4c27b8c6e75c7971ad9f5b79315d23aeedd
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Mar 29 21:42:16 2021 +0500

    nintendo-ds: Use RetroRunnerFactory

 plugins/nintendo-ds/src/nintendo-ds-plugin.vala | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 61143a62..d7ff950a 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -29,8 +29,7 @@ private class Games.NintendoDsPlugin : Object, Plugin {
        }
 
        public RunnerFactory[] get_runner_factories () {
-               var factory = new GenericRunnerFactory (create_runner);
-               factory.add_platform (platform);
+               var factory = new RetroRunnerFactory (platform, typeof (NintendoDsRunner));
 
                return { factory };
        }
@@ -50,12 +49,6 @@ private class Games.NintendoDsPlugin : Object, Plugin {
 
                return game;
        }
-
-       private static Runner? create_runner (Game game) throws Error {
-               var core_source = new RetroCoreSource (platform);
-
-               return new NintendoDsRunner (game, core_source);
-       }
 }
 
 [ModuleInit]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]