Skip to content

Commit

Permalink
-nolauncher arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ACCESS-DENIIED committed Aug 19, 2024
1 parent 303b0ef commit f076589
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SMPC Script Hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ bool StartGame(const std::string& gamePath)
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));

if (CreateProcessA(NULL, const_cast<char*>(gamePath.c_str()), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
// Combine the game path with the -nolauncher argument
std::string commandLine = "\"" + gamePath + "\" -nolauncher";

if (CreateProcessA(NULL, const_cast<char*>(commandLine.c_str()), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
{
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
Expand Down

0 comments on commit f076589

Please sign in to comment.