[gnome-games/wip/exalm/platform-preferences: 33/46] retro-core-source: Always search modules
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/platform-preferences: 33/46] retro-core-source: Always search modules
- Date: Wed, 20 Feb 2019 17:46:17 +0000 (UTC)
commit 4c0e1975686dfcf5c1d104ba84d7fc529c7f6889
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]