[gnome-games/wip/exalm/crash: 2/3] retro-runner: Pass platform along with core descriptor



commit 8474a4b03db25c57b4ccba77d044e32ec3e1cef9
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Fri Nov 16 00:15:37 2018 +0500

    retro-runner: Pass platform along with core descriptor
    
    Rename RetroRunner.for_core_descriptor() constructor to
    RetrRunner.for_core_descriptor_and_platform() and add platform parameter.
    
    This will be used in the following commit to separate platform from
    core_source.

 plugins/libretro/src/libretro-plugin.vala | 2 +-
 src/retro/retro-runner.vala               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/libretro/src/libretro-plugin.vala b/plugins/libretro/src/libretro-plugin.vala
index e12737da..4bba2b65 100644
--- a/plugins/libretro/src/libretro-plugin.vala
+++ b/plugins/libretro/src/libretro-plugin.vala
@@ -39,7 +39,7 @@ private class Games.LibretroPlugin : Object, Plugin {
                var uid = new LibretroUid (core_descriptor);
                var title = new LibretroTitle (core_descriptor);
                var icon = new LibretroIcon (core_descriptor);
-               var runner = new RetroRunner.for_core_descriptor (core_descriptor, uid, title);
+               var runner = new RetroRunner.for_core_descriptor_and_platform (core_descriptor, platform, 
uid, title);
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_icon (icon);
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index b063cd4f..2dbebcbd 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -100,7 +100,7 @@ public class Games.RetroRunner : Object, Runner {
                _media_set.notify["selected-media-number"].connect (on_media_number_changed);
        }
 
-       public RetroRunner.for_core_descriptor (Retro.CoreDescriptor core_descriptor, Uid uid, Title 
game_title) {
+       public RetroRunner.for_core_descriptor_and_platform (Retro.CoreDescriptor core_descriptor, Platform 
platform, Uid uid, Title game_title) {
                is_initialized = false;
                is_ready = false;
                should_save = false;


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