Skip to content

Commit

Permalink
Merge pull request #106 from gwdevhub/dev
Browse files Browse the repository at this point in the history
use vk_control to pause before loading dlls
  • Loading branch information
DubbleClick authored Dec 18, 2024
2 parents c889e9f + 45c37a7 commit f20a168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GW Launcher/MulticlientPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ private static IntPtr GetProcessModuleBase(IntPtr process)

memory = new GWCAMemory(process);

const int VK_SHIFT = 0x10;
//NB: Because account launching is done on another thread, we can't rely on WPF/WinForms API to tell us if shift is pressed
if ((GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0) {
const int VK_CONTROL = 0x11;
//NB: Because account launching is done on another thread, we can't rely on WPF/WinForms API to tell us if ctrl is pressed
if ((GetAsyncKeyState(VK_CONTROL) & 0x8000) != 0) {
DialogResult result =
MessageBox.Show("Guild Wars is in a suspended state, plugins are not yet loaded.\n\nContinue?",
"Launching paused", MessageBoxButtons.OKCancel);
Expand Down

0 comments on commit f20a168

Please sign in to comment.