summaryrefslogtreecommitdiff
path: root/py_modules/lsfg_vk
diff options
context:
space:
mode:
Diffstat (limited to 'py_modules/lsfg_vk')
-rw-r--r--py_modules/lsfg_vk/constants.py2
-rw-r--r--py_modules/lsfg_vk/plugin.py8
2 files changed, 10 insertions, 0 deletions
diff --git a/py_modules/lsfg_vk/constants.py b/py_modules/lsfg_vk/constants.py
index 795c1bf..a2140b3 100644
--- a/py_modules/lsfg_vk/constants.py
+++ b/py_modules/lsfg_vk/constants.py
@@ -25,6 +25,8 @@ JSON_EXT = ".json"
BIN_DIR = "bin"
+ARMADA_GAME_LAUNCH = Path("/usr/libexec/armada/armada-game-launch")
+
STEAM_COMMON_PATH = Path("steamapps/common/Lossless Scaling")
LOSSLESS_DLL_NAME = "Lossless.dll"
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py
index cb59b4f..2cb08f4 100644
--- a/py_modules/lsfg_vk/plugin.py
+++ b/py_modules/lsfg_vk/plugin.py
@@ -18,6 +18,7 @@ from .dll_detection import DllDetectionService
from .configuration import ConfigurationService
from .config_schema import ConfigurationManager
from .flatpak_service import FlatpakService
+from .constants import ARMADA_GAME_LAUNCH
class Plugin:
@@ -255,6 +256,13 @@ class Plugin:
Returns:
Dict containing the launch option string and instructions
"""
+ if ARMADA_GAME_LAUNCH.is_file():
+ return {
+ "launch_option": f"~/lsfg {ARMADA_GAME_LAUNCH} %command%",
+ "instructions": "Use this combined command in Steam Properties, preserving Armada's game-launch wrapper",
+ "explanation": "LSFG sets its environment first, then Armada applies the game's FEX profile and launches Proton"
+ }
+
return {
"launch_option": "~/lsfg %command%",
"instructions": "Add this to your game's launch options in Steam Properties",