We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188983d commit 36340bfCopy full SHA for 36340bf
source/emulators/RetroarchEmulator.gd
@@ -20,11 +20,8 @@ static func get_config_path() -> String:
20
# RetroArch on Windows works as a "portable" installation. Config is located beside main files.
21
# Try to find a valid binpath.
22
var emulator : Dictionary = RetroHubConfig.emulators_map["retroarch"]
23
- var binpaths : Array = emulator["binpath"]
24
- for binpath in binpaths:
25
- if FileAccess.file_exists(binpath):
26
- return binpath
27
- return ""
+ var binpath := RetroHubRetroArchEmulator.find_and_substitute_str(emulator["binpath"], {})
+ return binpath
28
FileUtils.OS_ID.LINUX:
29
# RetroArch uses either XDG_CONFIG_HOME or HOME.
30
var xdg := OS.get_environment("XDG_CONFIG_HOME")
0 commit comments