From 375a2947b5a8f4ee0c93108c513c38509f5e5001 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Wed, 5 Aug 2026 13:58:33 +0200 Subject: [PATCH] Update file copy logic and GPU-specific configurations Removed SuperWoWhook.dll from the file copy list and added conditional logic for dxvk.conf based on GPU type. --- setup_tool.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/setup_tool.py b/setup_tool.py index 663cec4..4413785 100644 --- a/setup_tool.py +++ b/setup_tool.py @@ -596,10 +596,21 @@ oLink.Save shutil.copytree(os.path.join(payload_dir, "Interface"), os.path.join(target, "Interface"), dirs_exist_ok=True) # Removed SuperWoWhook.dll from this list! - for file in ["VanillaFixes.exe", "VfPatcher.dll", "dxvk.conf"]: + for file in ["VanillaFixes.exe", "VfPatcher.dll"]: source_file = os.path.join(payload_dir, file) if os.path.exists(source_file): shutil.copy2(source_file, target) + # dxvk.conf uniquement pour NVIDIA / Standard + if self.gpu_type.get() != "AMD": + source_file = os.path.join(payload_dir, "dxvk.conf") + if os.path.exists(source_file): + shutil.copy2(source_file, target) + else: + # On nettoie aussi l'éventuel ancien dxvk.conf en mode AMD + conf_target = os.path.join(target, "dxvk.conf") + if os.path.exists(conf_target): + os.remove(conf_target) + def configure_dxvk(self, target): payload_dir = os.path.join(get_base_path(), "Payload") if self.gpu_type.get() == "AMD": @@ -616,8 +627,10 @@ oLink.Save payload_base = os.path.join(get_base_path(), "Payload") payload_weirdu = os.path.join(payload_base, "WeirdUtils") - # Start the list with dxvk to ensure DXVK is always loaded first - dlls_text_lines = ["dxvk"] + # On met "dxvk" seulement si on est en version Standard (NVIDIA/Intel) + dlls_text_lines = [] + if self.gpu_type.get() != "AMD": + dlls_text_lines.append("dxvk") # Process Core Plugins for dll_name, var in self.core_plugins.items():