diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-08-08 10:44:24 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-08-08 10:44:24 -0400 |
| commit | 01e7b8b31553975aff30cdef3b111adde6d27aa3 (patch) | |
| tree | 5d4ba1ebfb769d8f22923a36749e3513ac1cf4f6 /main.py | |
| parent | 4967dbb4ea19182c982c8107574a85f306266e8f (diff) | |
| download | Decky-Framegen-0.11.11.tar.gz Decky-Framegen-0.11.11.zip | |
testing xess 2.1 dll swap inv0.11.11
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -173,6 +173,26 @@ class Plugin: ini_file = extract_path / "OptiScaler.ini" self._modify_optiscaler_ini(ini_file) + # After extraction, replace XeSS DLLs with newer versions from remote binaries (if available) + try: + newer_libxess = bin_path / "libxess.dll" + newer_libxess_dx11 = bin_path / "libxess_dx11.dll" + replaced = [] + if newer_libxess.exists(): + shutil.copy2(newer_libxess, extract_path / "libxess.dll") + replaced.append("libxess.dll") + else: + decky.logger.warning(f"Newer libxess.dll not found at {newer_libxess}") + if newer_libxess_dx11.exists(): + shutil.copy2(newer_libxess_dx11, extract_path / "libxess_dx11.dll") + replaced.append("libxess_dx11.dll") + else: + decky.logger.warning(f"Newer libxess_dx11.dll not found at {newer_libxess_dx11}") + if replaced: + decky.logger.info(f"Replaced XeSS DLLs with newer versions: {', '.join(replaced)}") + except Exception as e: + decky.logger.error(f"Failed to replace XeSS DLLs: {e}") + return { "status": "success", "message": f"Successfully extracted OptiScaler {version} to ~/fgmod", |
