summaryrefslogtreecommitdiff
path: root/py_modules
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-05 17:54:10 -0400
committerKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-05 17:54:10 -0400
commit9cd2149c45db1fa02edc7280c8d71d536c8ef44e (patch)
tree95f18be2369f8e48fa4a8ecf89087ba36dd6eb5f /py_modules
parent688c7c6e0e49deaedb3edc658dd9342453cfe4c1 (diff)
downloaddecky-lsfg-vk-9cd2149c45db1fa02edc7280c8d71d536c8ef44e.tar.gz
decky-lsfg-vk-9cd2149c45db1fa02edc7280c8d71d536c8ef44e.zip
fix: preserve migrated v2 dll paths
Diffstat (limited to 'py_modules')
-rw-r--r--py_modules/lsfg_vk/config_schema.py7
-rw-r--r--py_modules/lsfg_vk/installation.py7
2 files changed, 7 insertions, 7 deletions
diff --git a/py_modules/lsfg_vk/config_schema.py b/py_modules/lsfg_vk/config_schema.py
index 86e8be7..92a74a3 100644
--- a/py_modules/lsfg_vk/config_schema.py
+++ b/py_modules/lsfg_vk/config_schema.py
@@ -105,10 +105,9 @@ class ConfigurationManager:
if not path_value:
return ""
path = Path(path_value)
- if path.name.lower() != "lossless.dll":
- return path_value
- replacement = path.with_name("lsfg-vk.dll")
- return str(replacement) if replacement.exists() else ""
+ if path.name.lower() in {"lossless.dll", "losslessscaling.dll"}:
+ return str(path.with_name("lsfg-vk.dll"))
+ return path_value
@staticmethod
def _config_from_profile(profile: Dict[str, Any], global_config: Dict[str, Any]) -> Dict[str, Any]:
diff --git a/py_modules/lsfg_vk/installation.py b/py_modules/lsfg_vk/installation.py
index ba2c4fe..0566d6b 100644
--- a/py_modules/lsfg_vk/installation.py
+++ b/py_modules/lsfg_vk/installation.py
@@ -128,9 +128,10 @@ class InstallationService(BaseService):
from .dll_detection import DllDetectionService
- dll_result = DllDetectionService(self.log).check_lossless_scaling_dll()
- if dll_result.get("detected") and dll_result.get("path"):
- profile_data["global_config"]["dll"] = dll_result["path"]
+ if not profile_data["global_config"].get("dll"):
+ dll_result = DllDetectionService(self.log).check_lossless_scaling_dll()
+ if dll_result.get("detected") and dll_result.get("path"):
+ profile_data["global_config"]["dll"] = dll_result["path"]
defaults = dict(ConfigurationManager.get_defaults())
for profile_name, raw_profile in list(profile_data["profiles"].items()):