Skip to content

Commit 36340bf

Browse files
committed
Fix Windows RetroArch path on user custom configs
1 parent 188983d commit 36340bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/emulators/RetroarchEmulator.gd

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ static func get_config_path() -> String:
2020
# RetroArch on Windows works as a "portable" installation. Config is located beside main files.
2121
# Try to find a valid binpath.
2222
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 ""
23+
var binpath := RetroHubRetroArchEmulator.find_and_substitute_str(emulator["binpath"], {})
24+
return binpath
2825
FileUtils.OS_ID.LINUX:
2926
# RetroArch uses either XDG_CONFIG_HOME or HOME.
3027
var xdg := OS.get_environment("XDG_CONFIG_HOME")

0 commit comments

Comments
 (0)