From b6635b028afc0fe1527d008759d273026a1d0a26 Mon Sep 17 00:00:00 2001 From: Alexander <87954949+absoluteSpacehead@users.noreply.github.com> Date: Tue, 12 Aug 2025 23:58:13 +0100 Subject: [PATCH] messagebox errors for injector --- MercuryInjector/dllmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MercuryInjector/dllmain.cpp b/MercuryInjector/dllmain.cpp index b6c01ee..4470838 100644 --- a/MercuryInjector/dllmain.cpp +++ b/MercuryInjector/dllmain.cpp @@ -39,6 +39,7 @@ void SetSubGameHook(void* thisref, uint8_t SubGame) if (!write) { + MessageBoxA(NULL, "DLL failed to inject (WriteProcessMemory failed).", NULL, MB_OK); std::cerr << "\nDLL failed to inject (WriteProcessMemory failed).\n"; MH_DisableHook(Offset(SetSubGameOffset)); @@ -51,6 +52,7 @@ void SetSubGameHook(void* thisref, uint8_t SubGame) if (!thread) { + MessageBoxA(NULL, "DLL failed to inject (CreateRemoteThread failed).", NULL, MB_OK); std::cerr << "\nDLL failed to inject (CreateRemoteThread failed).\n"; MH_DisableHook(Offset(SetSubGameOffset));