mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Return if install_path doesn't exist
This commit is contained in:
@@ -45,6 +45,9 @@ def find_games() -> Dict[str, Path]:
|
||||
install_path = Path(os.environ["ProgramW6432"]) / "EA Games"
|
||||
config.set("mod_organizer", "user.downloadinplacedir", install_path.__str__())
|
||||
|
||||
if not install_path.exists():
|
||||
return games
|
||||
|
||||
for game_dir in install_path.iterdir():
|
||||
try:
|
||||
installer_file = game_dir.joinpath("__Installer", "installerdata.xml")
|
||||
|
||||
Reference in New Issue
Block a user