[gnome-games/wip/exalm/platform-preferences: 15/28] retro-core-source: Always search modules



commit 0863b74427c361e62fe8ca496bebc0163993aba9
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Jan 7 21:11:04 2019 +0500

    retro-core-source: Always search modules
    
    This is needed to be able to pick up preferred core changes without
    restarting the app and without monitoring gsettings for every platform.

 src/retro/retro-core-source.vala | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/retro/retro-core-source.vala b/src/retro/retro-core-source.vala
index d2874cce..7b75ecaa 100644
--- a/src/retro/retro-core-source.vala
+++ b/src/retro/retro-core-source.vala
@@ -4,11 +4,9 @@ public class Games.RetroCoreSource : Object {
        private RetroPlatform platform;
 
        private Retro.CoreDescriptor core_descriptor;
-       private bool searched;
 
        public RetroCoreSource (RetroPlatform platform) {
                this.platform = platform;
-               searched = false;
        }
 
        public Platform get_platform () {
@@ -29,10 +27,7 @@ public class Games.RetroCoreSource : Object {
        }
 
        private void ensure_module_is_found () throws Error {
-               if (!searched) {
-                       searched = true;
-                       search_module ();
-               }
+               search_module ();
 
                var platform_id = platform.get_id ();
 


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