From cd561c672126a21a3a557caa5af632a7f1455e2b Mon Sep 17 00:00:00 2001 From: Alexander <87954949+absoluteSpacehead@users.noreply.github.com> Date: Sat, 4 Jan 2025 03:34:54 +0000 Subject: [PATCH] auto login for ot6.5 --- MercuryLauncher/MercuryLauncher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MercuryLauncher/MercuryLauncher.cpp b/MercuryLauncher/MercuryLauncher.cpp index 519b400..9c5ac37 100644 --- a/MercuryLauncher/MercuryLauncher.cpp +++ b/MercuryLauncher/MercuryLauncher.cpp @@ -317,7 +317,9 @@ int SetupOT() STARTUPINFOW startupInfo = { 0 }; startupInfo.cb = sizeof(STARTUPINFO); PROCESS_INFORMATION processInformation = { 0 }; - CreateProcessW(BINARY_PATH_OT, nullptr, nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation); + std::wstring cmd(BINARY_PATH_OT); + cmd += L" -log -AUTH_LOGIN=unknown -AUTH_PASSWORD=5001 -AUTH_TYPE=exchangecode"; + CreateProcessW(BINARY_PATH_OT, &cmd[0], nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation); AssignProcessToJobObject(job, processInformation.hProcess);