Add WAIT_BEFORE_RESUME envvar
This commit is contained in:
parent
7ffce8fe3a
commit
3994188b08
@ -32,6 +32,8 @@ This tool is capable of starting the games from a different process. This may be
|
||||
### Configuration
|
||||
These environment variables can be used to configure the behaviour of the tool.
|
||||
|
||||
- (future release) `WAIT_BEFORE_RESUME=1` - show a messagebox and wait for user input before resuming the game process. Useful on my side for debugging
|
||||
|
||||
**SR-exclusive**:
|
||||
- `I_WANT_A_BAN=1` - allows to launch SR. Please only use testing accounts, as there is an extremely high risk of getting banned
|
||||
- `SRFIX_DISABLE=1` - disable shared resources fix
|
||||
|
@ -60,6 +60,14 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) {
|
||||
size_t payloadSize = (size_t)&_binary_lpayload_o_p_payload_bin_size;
|
||||
inject(pi.hProcess, payloadStart, payloadSize, injectDll);
|
||||
|
||||
// Optional: wait for user input before resuming (useful for debugging)
|
||||
char *waitEnabled = getenv("WAIT_BEFORE_RESUME");
|
||||
if (waitEnabled && strcmp(waitEnabled, "") != 0) {
|
||||
char message[64];
|
||||
sprintf(message, "PID: %ld. Press OK to continue", pi.dwProcessId);
|
||||
MessageBoxA(NULL, message, "Jadeite Launcher Payload", MB_OK | MB_ICONINFORMATION);
|
||||
}
|
||||
|
||||
// Resume the process
|
||||
ResumeThread(pi.hThread);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user