diff options
| author | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2025-10-21 22:47:26 -0400 |
|---|---|---|
| committer | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2025-10-21 22:47:26 -0400 |
| commit | 74b246f30bb6b030ad3cf1a2a993db1204f061c1 (patch) | |
| tree | 8b53aa7687bbb61d36a4723898ea726670b2f6c8 /py_modules | |
| parent | 6a4cb63fa3de3af111245fe5dd476d70775cd74f (diff) | |
| download | decky-lsfg-vk-74b246f30bb6b030ad3cf1a2a993db1204f061c1.tar.gz decky-lsfg-vk-74b246f30bb6b030ad3cf1a2a993db1204f061c1.zip | |
rm unused DLL path methods from ConfigurationService and Plugin classes
Diffstat (limited to 'py_modules')
| -rw-r--r-- | py_modules/lsfg_vk/configuration.py | 35 | ||||
| -rw-r--r-- | py_modules/lsfg_vk/plugin.py | 41 |
2 files changed, 0 insertions, 76 deletions
diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py index 13fa925..332d4ef 100644 --- a/py_modules/lsfg_vk/configuration.py +++ b/py_modules/lsfg_vk/configuration.py @@ -104,41 +104,6 @@ class ConfigurationService(BaseService): self.log.error(error_msg) return self._error_response(ConfigurationResponse, str(e), config=None) - def update_dll_path(self, dll_path: str) -> ConfigurationResponse: - """Update just the DLL path in the configuration - - Args: - dll_path: Path to the Lossless.dll file - - Returns: - ConfigurationResponse with success status - """ - try: - profile_data = self._get_profile_data() - - profile_data["global_config"]["dll"] = dll_path - - current_profile = profile_data["current_profile"] - from .config_schema_generated import DLL - profile_data["profiles"][current_profile][DLL] = dll_path - - self._save_profile_data(profile_data) - - script_result = self.update_lsfg_script_from_profile_data(profile_data) - if not script_result["success"]: - self.log.warning(f"Failed to update launch script: {script_result['error']}") - - self.log.info(f"Updated DLL path in lsfg configuration: '{dll_path}'") - - return self._success_response(ConfigurationResponse, - f"DLL path updated to: {dll_path}", - config=profile_data["profiles"][current_profile]) - - except Exception as e: - error_msg = f"Error updating DLL path: {str(e)}" - self.log.error(error_msg) - return self._error_response(ConfigurationResponse, str(e), config=None) - def update_lsfg_script(self, config: ConfigurationData) -> ConfigurationResponse: """Update the ~/lsfg launch script with current configuration diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py index 60916dd..cb59b4f 100644 --- a/py_modules/lsfg_vk/plugin.py +++ b/py_modules/lsfg_vk/plugin.py @@ -68,36 +68,6 @@ class Plugin: """ return self.dll_detection_service.check_lossless_scaling_dll() - async def check_lossless_scaling_dll_and_update_config(self) -> Dict[str, Any]: - """Check for DLL and automatically update configuration if found - - This method should only be used during installation or when explicitly - requested by the user, not for routine DLL detection checks. - - Returns: - DllDetectionResponse dict with detection status and path info - """ - result = self.dll_detection_service.check_lossless_scaling_dll() - - result_dict = dict(result) - - if result.get("detected") and result.get("path"): - try: - dll_path = result["path"] - if dll_path: - update_result = self.configuration_service.update_dll_path(dll_path) - if update_result.get("success"): - result_dict["config_updated"] = True - result_dict["message"] = f"DLL detected and configuration updated: {dll_path}" - else: - result_dict["config_updated"] = False - result_dict["message"] = f"DLL detected but config update failed: {update_result.get('error', 'Unknown error')}" - except Exception as e: - result_dict["config_updated"] = False - result_dict["message"] = f"DLL detected but config update failed: {str(e)}" - - return result_dict - async def get_dll_stats(self) -> Dict[str, Any]: """Get detailed statistics about the detected DLL @@ -211,17 +181,6 @@ class Plugin: return self.configuration_service.update_config_from_dict(validated_config) - async def update_dll_path(self, dll_path: str) -> Dict[str, Any]: - """Update the DLL path in the configuration when detected - - Args: - dll_path: Path to the detected Lossless.dll file - - Returns: - ConfigurationResponse dict with success status - """ - return self.configuration_service.update_dll_path(dll_path) - async def get_profiles(self) -> Dict[str, Any]: """Get list of all profiles and current profile |
