[gnome-games/wip/exalm/rebrand: 97/102] retro-core-source: Move to core/




commit a751ac3fbdb654eb72d3bd9d98dee8955b7de3fc
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Mar 31 01:03:58 2021 +0500

    retro-core-source: Move to core/

 src/{retro/retro-core-source.vala => core/core-source.vala} | 4 ++--
 src/core/game-collection.vala                               | 2 +-
 src/core/runner.vala                                        | 4 ++--
 src/meson.build                                             | 2 +-
 src/platforms/ms-dos/ms-dos-runner.vala                     | 2 +-
 src/platforms/nintendo-3ds/nintendo-3ds-runner.vala         | 2 +-
 src/platforms/nintendo-64/nintendo-64-runner.vala           | 2 +-
 src/platforms/nintendo-ds/nintendo-ds-runner.vala           | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/retro/retro-core-source.vala b/src/core/core-source.vala
similarity index 94%
rename from src/retro/retro-core-source.vala
rename to src/core/core-source.vala
index 8d37b8ac..3e17648a 100644
--- a/src/retro/retro-core-source.vala
+++ b/src/core/core-source.vala
@@ -1,11 +1,11 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
-public class Games.RetroCoreSource : Object {
+public class Games.CoreSource : Object {
        private Platform platform;
 
        private Retro.CoreDescriptor core_descriptor;
 
-       public RetroCoreSource (Platform platform) {
+       public CoreSource (Platform platform) {
                this.platform = platform;
        }
 
diff --git a/src/core/game-collection.vala b/src/core/game-collection.vala
index 1f1ac15a..01eca264 100644
--- a/src/core/game-collection.vala
+++ b/src/core/game-collection.vala
@@ -152,7 +152,7 @@ private class Games.GameCollection : Object {
        }
 
        public Runner? create_runner (Game game) {
-               var core_source = new RetroCoreSource (game.platform);
+               var core_source = new CoreSource (game.platform);
                var type = game.platform.runner_type;
 
                return Object.new (type, game: game, core_source: core_source) as Runner;
diff --git a/src/core/runner.vala b/src/core/runner.vala
index dc0ca413..2b53f203 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -7,7 +7,7 @@ public class Games.Runner : Object {
        public signal void controllers_changed ();
 
        public Game game { get; construct; }
-       public RetroCoreSource core_source { get; construct; }
+       public CoreSource core_source { get; construct; }
 
        public bool can_fullscreen {
                get { return true; }
@@ -67,7 +67,7 @@ public class Games.Runner : Object {
        private bool core_loaded;
        private bool is_error;
 
-       public Runner (Game game, RetroCoreSource source) {
+       public Runner (Game game, CoreSource source) {
                Object (game: game, core_source: source);
        }
 
diff --git a/src/meson.build b/src/meson.build
index 4158db3b..b45c3ac4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -21,6 +21,7 @@ vala_sources = [
 
   'core/core.vala',
   'core/core-manager.vala',
+  'core/core-source.vala',
   'core/cover.vala',
   'core/cover-loader.vala',
   'core/firmware.vala',
@@ -138,7 +139,6 @@ vala_sources = [
   'preferences/preferences-subpage-keyboard.vala',
   'preferences/preferences-window.vala',
 
-  'retro/retro-core-source.vala',
   'retro/retro-error.vala',
   'retro/retro-gamepad.vala',
   'retro/retro-input-manager.vala',
diff --git a/src/platforms/ms-dos/ms-dos-runner.vala b/src/platforms/ms-dos/ms-dos-runner.vala
index 01a8ba4c..91fee7fe 100644
--- a/src/platforms/ms-dos/ms-dos-runner.vala
+++ b/src/platforms/ms-dos/ms-dos-runner.vala
@@ -1,7 +1,7 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
 private class Games.MsDosRunner : Runner {
-       public MsDosRunner (Game game, RetroCoreSource source) {
+       public MsDosRunner (Game game, CoreSource source) {
                base (game, source);
        }
 
diff --git a/src/platforms/nintendo-3ds/nintendo-3ds-runner.vala 
b/src/platforms/nintendo-3ds/nintendo-3ds-runner.vala
index 423477a5..da64c07e 100644
--- a/src/platforms/nintendo-3ds/nintendo-3ds-runner.vala
+++ b/src/platforms/nintendo-3ds/nintendo-3ds-runner.vala
@@ -34,7 +34,7 @@ private class Games.Nintendo3DsRunner : Runner {
                layouts[Gdk.Key.@4] = ScreenLayout.QUICK_SWITCH;
        }
 
-       public Nintendo3DsRunner (Game game, RetroCoreSource source) {
+       public Nintendo3DsRunner (Game game, CoreSource source) {
                base (game, source);
        }
 
diff --git a/src/platforms/nintendo-64/nintendo-64-runner.vala 
b/src/platforms/nintendo-64/nintendo-64-runner.vala
index 1074578e..0b5d5a17 100644
--- a/src/platforms/nintendo-64/nintendo-64-runner.vala
+++ b/src/platforms/nintendo-64/nintendo-64-runner.vala
@@ -38,7 +38,7 @@ private class Games.Nintendo64Runner : Runner {
                }
        }
 
-       public Nintendo64Runner (Game game, RetroCoreSource source) {
+       public Nintendo64Runner (Game game, CoreSource source) {
                base (game, source);
        }
 
diff --git a/src/platforms/nintendo-ds/nintendo-ds-runner.vala 
b/src/platforms/nintendo-ds/nintendo-ds-runner.vala
index 9eaef9df..05f7fe10 100644
--- a/src/platforms/nintendo-ds/nintendo-ds-runner.vala
+++ b/src/platforms/nintendo-ds/nintendo-ds-runner.vala
@@ -65,7 +65,7 @@ private class Games.NintendoDsRunner : Runner {
                }
        }
 
-       public NintendoDsRunner (Game game, RetroCoreSource source) {
+       public NintendoDsRunner (Game game, CoreSource source) {
                base (game, source);
        }
 


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