mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix launch after update bug
Build command line properly, must prepend executable name first since that gets populated into arg 0.
This commit is contained in:
parent
a7277b47fc
commit
c87ee1b81d
@ -208,9 +208,12 @@ int main(int argc, char** argv)
|
||||
// Initialize startup info struct.
|
||||
startupInfo.cb = sizeof(STARTUPINFOA);
|
||||
|
||||
char commandLine[256];
|
||||
V_snprintf(commandLine, sizeof(commandLine), "launcher.exe %s", "-launch");
|
||||
|
||||
BOOL createResult = CreateProcessA(
|
||||
"launcher.exe", // lpApplicationName
|
||||
(LPSTR)"-launch", // lpCommandLine
|
||||
commandLine, // lpCommandLine
|
||||
NULL, // lpProcessAttributes
|
||||
NULL, // lpThreadAttributes
|
||||
FALSE, // bInheritHandles
|
||||
|
Loading…
x
Reference in New Issue
Block a user