diff --git a/SMPC Script Hook.cpp b/SMPC Script Hook.cpp index 70b4d84..e641642 100644 --- a/SMPC Script Hook.cpp +++ b/SMPC Script Hook.cpp @@ -40,7 +40,10 @@ bool StartGame(const std::string& gamePath) si.cb = sizeof(si); ZeroMemory(&pi, sizeof(pi)); - if (CreateProcessA(NULL, const_cast(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(commandLine.c_str()), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread);