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: