From a387b06738177ec0b1cbf8d0d8f5e1c43212f953 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:15:38 -0400 Subject: fix: detect legacy Lossless Scaling branch --- py_modules/lsfg_vk/dll_detection.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'py_modules/lsfg_vk') 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 -- cgit v1.2.3