summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-06 11:15:38 -0400
committerKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-06 11:15:38 -0400
commita387b06738177ec0b1cbf8d0d8f5e1c43212f953 (patch)
tree8af141865a59330b18f3fb08f231b873d0ce7fbd
parent914630e080806eb0d91e473637fd83dbe1221e23 (diff)
downloaddecky-lsfg-vk-a387b06738177ec0b1cbf8d0d8f5e1c43212f953.tar.gz
decky-lsfg-vk-a387b06738177ec0b1cbf8d0d8f5e1c43212f953.zip
fix: detect legacy Lossless Scaling branch
-rw-r--r--py_modules/lsfg_vk/dll_detection.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/py_modules/lsfg_vk/dll_detection.py b/py_modules/lsfg_vk/dll_detection.py
index f7ba444..592d170 100644
--- a/py_modules/lsfg_vk/dll_detection.py
+++ b/py_modules/lsfg_vk/dll_detection.py
@@ -46,6 +46,16 @@ class DllDetectionService(BaseService):
steam_libraries_path = self._check_steam_library_folders()
if steam_libraries_path:
return steam_libraries_path
+
+ legacy_dll = self._check_legacy_dll()
+ if legacy_dll:
+ return {
+ "detected": False,
+ "path": None,
+ "source": str(legacy_dll),
+ "message": "Lossless Scaling found. Switch it to the \"lsfg-vk\" branch in Steam.",
+ "error": None
+ }
return {
"detected": False,
@@ -66,6 +76,13 @@ class DllDetectionService(BaseService):
"error": str(e)
}
+ def _check_legacy_dll(self) -> Path | None:
+ for library_path in self._get_steam_library_paths():
+ dll_path = Path(library_path) / STEAM_COMMON_PATH / "Lossless.dll"
+ if dll_path.exists():
+ return dll_path
+ return None
+
def _check_env_dll_path(self) -> DllDetectionResponse | None:
"""Check LSFG_DLL_PATH environment variable