From 2a032e21d93d2c34e77dc127e7252d90514ddb7d Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Wed, 20 Nov 2024 15:13:45 +0100 Subject: [PATCH 1/3] Update dependencies (incl. vulnerable dependencies) Patch launcher to delay the GW process thread --- GW Launcher/GW Launcher.csproj | 11 ++++++----- GW Launcher/MulticlientPatch.cs | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/GW Launcher/GW Launcher.csproj b/GW Launcher/GW Launcher.csproj index f3a890f..7543c5f 100644 --- a/GW Launcher/GW Launcher.csproj +++ b/GW Launcher/GW Launcher.csproj @@ -15,7 +15,7 @@ portable 2015-2024 GregLando113, DubbleClick True - 12 + latest false @@ -49,10 +49,11 @@ - - - - + + + + + diff --git a/GW Launcher/MulticlientPatch.cs b/GW Launcher/MulticlientPatch.cs index 48f2f8b..b72049b 100644 --- a/GW Launcher/MulticlientPatch.cs +++ b/GW Launcher/MulticlientPatch.cs @@ -5,6 +5,8 @@ namespace GW_Launcher; internal static class MulticlientPatch { + private const int LaunchDelay = 2000; + private static string GetErrorMessage(string err, int errorCode, [System.Runtime.CompilerServices.CallerFilePath] string file = "", [System.Runtime.CompilerServices.CallerLineNumber] int lineNumber = 0) @@ -151,6 +153,8 @@ private static IntPtr GetProcessModuleBase(IntPtr process) } } + //Delay process resume to allow time for mods to properly hook into GW + Thread.Sleep(LaunchDelay); if (procinfo.hThread != IntPtr.Zero) { try From eaaec41f5414291d76cb8a5b0898726ff5a90cb4 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Thu, 21 Nov 2024 10:18:28 +0100 Subject: [PATCH 2/3] Remove delay --- GW Launcher/MulticlientPatch.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/GW Launcher/MulticlientPatch.cs b/GW Launcher/MulticlientPatch.cs index b72049b..bab3f15 100644 --- a/GW Launcher/MulticlientPatch.cs +++ b/GW Launcher/MulticlientPatch.cs @@ -153,8 +153,6 @@ private static IntPtr GetProcessModuleBase(IntPtr process) } } - //Delay process resume to allow time for mods to properly hook into GW - Thread.Sleep(LaunchDelay); if (procinfo.hThread != IntPtr.Zero) { try From b6ab66ed83464c5694c749220d3c2e0eb9ef49e1 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Thu, 21 Nov 2024 10:19:43 +0100 Subject: [PATCH 3/3] Remove delay value --- GW Launcher/MulticlientPatch.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/GW Launcher/MulticlientPatch.cs b/GW Launcher/MulticlientPatch.cs index bab3f15..48f2f8b 100644 --- a/GW Launcher/MulticlientPatch.cs +++ b/GW Launcher/MulticlientPatch.cs @@ -5,8 +5,6 @@ namespace GW_Launcher; internal static class MulticlientPatch { - private const int LaunchDelay = 2000; - private static string GetErrorMessage(string err, int errorCode, [System.Runtime.CompilerServices.CallerFilePath] string file = "", [System.Runtime.CompilerServices.CallerLineNumber] int lineNumber = 0)