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



commit 930b7b497089c4ce59af5183a67aad5cbb667f44
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 573f07d7..0b8df6f9 100644
--- a/plugins/libretro/src/libretro-plugin.vala
+++ b/plugins/libretro/src/libretro-plugin.vala
@@ -40,7 +40,7 @@ private class Games.LibretroPlugin : Object, Plugin {
                var title = new LibretroTitle (core_descriptor);
                var icon = new LibretroIcon (core_descriptor);
                var input_capabilities = new LibretroInputCapabilities ();
-               var runner = new RetroRunner.for_core_descriptor (core_descriptor, uid, title, 
input_capabilities);
+               var runner = new RetroRunner.for_core_descriptor_and_platform (core_descriptor, platform, 
uid, title, input_capabilities);
 
                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 79ac5a9f..c75fa844 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -108,7 +108,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, InputCapabilities? input_capabilities = null) {
+       public RetroRunner.for_core_descriptor_and_platform (Retro.CoreDescriptor core_descriptor, Platform 
platform, Uid uid, Title game_title, InputCapabilities? input_capabilities = null) {
                is_initialized = false;
                is_ready = false;
                should_save = false;


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