Show a messagebox if the game failed to start

This commit is contained in:
mkrsym1 2023-06-06 20:36:00 +03:00
parent c1cfed6216
commit 0dea9e7625

View File

@ -1,3 +1,5 @@
#include <stdio.h>
#include <injshared.h>
#include <lpayload.h>
@ -46,6 +48,10 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) {
&si,
&pi
)) {
char message[64];
sprintf(message, "Failed to start game process: %ld", GetLastError());
MessageBoxA(NULL, message, "Jadeite Launcher Payload", MB_OK | MB_ICONERROR);
exit(1);
}