Skip to content

Commit

Permalink
Test Linux Build
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLastBreath committed Oct 18, 2024
1 parent 003f8ba commit 098c31e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/GameManager/GameManager.py
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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)

Expand Down

0 comments on commit 098c31e

Please sign in to comment.