mirror of
https://github.com/absoluteSpacehead/MercuryLauncher.git
synced 2026-01-13 03:02:21 +01:00
messagebox errors for injector
This commit is contained in:
@@ -39,6 +39,7 @@ void SetSubGameHook(void* thisref, uint8_t SubGame)
|
|||||||
|
|
||||||
if (!write)
|
if (!write)
|
||||||
{
|
{
|
||||||
|
MessageBoxA(NULL, "DLL failed to inject (WriteProcessMemory failed).", NULL, MB_OK);
|
||||||
std::cerr << "\nDLL failed to inject (WriteProcessMemory failed).\n";
|
std::cerr << "\nDLL failed to inject (WriteProcessMemory failed).\n";
|
||||||
|
|
||||||
MH_DisableHook(Offset<uintptr_t>(SetSubGameOffset));
|
MH_DisableHook(Offset<uintptr_t>(SetSubGameOffset));
|
||||||
@@ -51,6 +52,7 @@ void SetSubGameHook(void* thisref, uint8_t SubGame)
|
|||||||
|
|
||||||
if (!thread)
|
if (!thread)
|
||||||
{
|
{
|
||||||
|
MessageBoxA(NULL, "DLL failed to inject (CreateRemoteThread failed).", NULL, MB_OK);
|
||||||
std::cerr << "\nDLL failed to inject (CreateRemoteThread failed).\n";
|
std::cerr << "\nDLL failed to inject (CreateRemoteThread failed).\n";
|
||||||
|
|
||||||
MH_DisableHook(Offset<uintptr_t>(SetSubGameOffset));
|
MH_DisableHook(Offset<uintptr_t>(SetSubGameOffset));
|
||||||
|
|||||||
Reference in New Issue
Block a user