Restore direct VanillaFixes launcher path

This commit is contained in:
Dusk-92
2026-08-31 22:45:01 +02:00
parent 87d32727bb
commit b5aefdc354
+7 -16
View File
@@ -2028,18 +2028,13 @@ class WowSetupTool:
staged_shortcut = shortcut_path + ".modernization-new.lnk" staged_shortcut = shortcut_path + ".modernization-new.lnk"
vanilla_fixes_exe = os.path.join(target_dir, "VanillaFixes.exe") vanilla_fixes_exe = os.path.join(target_dir, "VanillaFixes.exe")
modernized_exe = os.path.join(target_dir, "WoW_Modernized.exe") modernized_exe = os.path.join(target_dir, "WoW_Modernized.exe")
discord_presence_exe = os.path.join(target_dir, "DiscordPresence.exe")
discord_presence_var = self.optional_plugins.get("DiscordPresence.dll") # Keep the launcher path identical to the pre-Discord-Presence setup.
discord_presence_enabled = bool( # When enabled, DiscordPresence.dll starts DiscordPresence.exe from its
discord_presence_var is not None and discord_presence_var.get() # worker thread after WoW is already running.
) launcher_exe = vanilla_fixes_exe
launcher_exe = discord_presence_exe if discord_presence_enabled else vanilla_fixes_exe launcher_arguments = "WoW_Modernized.exe"
launcher_arguments = "" if discord_presence_enabled else "WoW_Modernized.exe" launcher_description = "Launch Vanilla WoW with VanillaFixes and Tweaks"
launcher_description = (
"Launch Modernized WoW with Discord Presence"
if discord_presence_enabled
else "Launch Vanilla WoW with VanillaFixes and Tweaks"
)
if not os.path.isfile(vanilla_fixes_exe): if not os.path.isfile(vanilla_fixes_exe):
raise RuntimeError( raise RuntimeError(
@@ -2049,10 +2044,6 @@ class WowSetupTool:
raise RuntimeError( raise RuntimeError(
"WoW_Modernized.exe is missing, so the launcher shortcuts cannot be created." "WoW_Modernized.exe is missing, so the launcher shortcuts cannot be created."
) )
if discord_presence_enabled and not os.path.isfile(discord_presence_exe):
raise RuntimeError(
"DiscordPresence.exe is missing, so the Discord-enabled launcher shortcut cannot be created."
)
support_dir = os.path.join(target_dir, ".modernization_tool") support_dir = os.path.join(target_dir, ".modernization_tool")
os.makedirs(support_dir, exist_ok=True) os.makedirs(support_dir, exist_ok=True)