diff --git a/src/modules/GameManager/GameManager.py b/src/modules/GameManager/GameManager.py index 3feb982..9baa466 100644 --- a/src/modules/GameManager/GameManager.py +++ b/src/modules/GameManager/GameManager.py @@ -1,6 +1,6 @@ from modules.GameManager.PatchInfo import PatchInfo from modules.logger import log, superlog -import json, os, sys +import json, os, sys, platform class Game_Manager: @@ -22,6 +22,11 @@ def LoadPatches(cls) -> None: patch_directory = os.path.join(sys._MEIPASS, cls.Directory) superlog.warning("No Patch Folder, using stored patches.") + if platform.system() == "Linux": + appdir = os.getenv("APPDIR") + if appdir: + patch_directory = os.path.join(appdir, cls.Directory) + superlog.info("Looking for supported games...") cls.CreatePatches(patch_directory)