From 6d74b08c8655cdfc1f9d612bb839f2a9d47aaf12 Mon Sep 17 00:00:00 2001 From: i30817 Date: Wed, 11 Jan 2023 07:53:00 +0000 Subject: [PATCH] bugfix d8ae474ceb6878e24cc2091791073e6e6841fa2b --- libretro_scummvm_playlist/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro_scummvm_playlist/__main__.py b/libretro_scummvm_playlist/__main__.py index a76b295..ae2ef78 100644 --- a/libretro_scummvm_playlist/__main__.py +++ b/libretro_scummvm_playlist/__main__.py @@ -72,9 +72,10 @@ def getPath(cfg: Path, setting: str, default_value: str): except: return None if fdir.startswith(':\\'): + fdir = fdir[2:] #imagine a retroarch.cfg file created in windows is read in posix if os.sep == '/': - fdir = fdir[2:].replace('\\', '/') + fdir = fdir.replace('\\', '/') return cfg.parent / fdir elif fdir == 'default': if default_value: