diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2026-09-13 07:47:06 -0400 |
|---|---|---|
| committer | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2026-09-13 07:47:06 -0400 |
| commit | b03471f869c29fc066fc02f7c59f76e3ac4eea4d (patch) | |
| tree | c6eb45fe25b8faf783fc16fcd9bfcd703addfd6e /py_modules/lsfg_vk/installation.py | |
| parent | 81feb03288166755545401b9df2ff2c9bc3ae7d7 (diff) | |
| download | decky-lsfg-vk-b03471f869c29fc066fc02f7c59f76e3ac4eea4d.tar.gz decky-lsfg-vk-b03471f869c29fc066fc02f7c59f76e3ac4eea4d.zip | |
fix: handle v1-v2 migration state cleanly
Diffstat (limited to 'py_modules/lsfg_vk/installation.py')
| -rw-r--r-- | py_modules/lsfg_vk/installation.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/py_modules/lsfg_vk/installation.py b/py_modules/lsfg_vk/installation.py index e7366ee..4003228 100644 --- a/py_modules/lsfg_vk/installation.py +++ b/py_modules/lsfg_vk/installation.py @@ -183,18 +183,23 @@ class InstallationService(BaseService): def check_installation(self) -> InstallationCheckResponse: try: - installation_error = None - try: - installed = self.runtime_service.is_healthy() - except Exception as error: - installed = False - installation_error = str(error) + installed = all( + path.is_file() + for path in ( + self.cli_file, + self.lib_file, + self.lib_x86_file, + self.json_file, + self.json_x86_file, + self.config_file_path, + ) + ) lossless_scaling = self.runtime_service.check_lossless_scaling() return { "installed": installed, "lossless_scaling_installed": bool(lossless_scaling["installed"]), "lossless_scaling_status": str(lossless_scaling["status"]), - "error": installation_error, + "error": None, } except Exception as error: return { |
