From 098c31e055462335ac2ccaacc1c26605179a833c Mon Sep 17 00:00:00 2001 From: MaxLastBreath Date: Fri, 18 Oct 2024 14:25:07 +0300 Subject: [PATCH] Test Linux Build --- src/modules/GameManager/GameManager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)