Don't skip Steam import if no libraryfolders.vdf

This commit is contained in:
kramo
2023-05-22 16:06:48 +02:00
parent f2c9e11856
commit dd2562a8ed

View File

@@ -158,13 +158,13 @@ def steam_importer():
appmanifests = [] appmanifests = []
if not (lib_file := steam_dir / "steamapps" / "libraryfolders.vdf").is_file(): if (lib_file := steam_dir / "steamapps" / "libraryfolders.vdf").is_file():
return libraryfolders = lib_file.open().read()
steam_dirs = [
libraryfolders = lib_file.open().read() Path(path) for path in re.findall('"path"\t\t"(.*)"\n', libraryfolders)
steam_dirs = [ ]
Path(path) for path in re.findall('"path"\t\t"(.*)"\n', libraryfolders) else:
] steam_dirs = [steam_dir]
for directory in steam_dirs: for directory in steam_dirs:
if not (directory / "steamapps").exists(): if not (directory / "steamapps").exists():