Show a messagebox if the game failed to start
This commit is contained in:
parent
c1cfed6216
commit
0dea9e7625
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user