mirror of
https://github.com/absoluteSpacehead/MercuryLauncher.git
synced 2026-01-13 19:12:23 +01:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd561c6721 | ||
|
|
9237818eb9 | ||
|
|
d274be0842 | ||
|
|
2687eaddf3 | ||
|
|
b138c34b8c | ||
|
|
68650aab7d | ||
|
|
3eab3b0e2c | ||
|
|
650f169232 |
@@ -30,6 +30,7 @@ HANDLE job;
|
|||||||
void Exit()
|
void Exit()
|
||||||
{
|
{
|
||||||
std::cout << "Press any key to exit.\n";
|
std::cout << "Press any key to exit.\n";
|
||||||
|
TerminateJobObject(job, 0);
|
||||||
_getch();
|
_getch();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,9 +264,9 @@ int SetupOT()
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// are we pakless?
|
// are we pakless?
|
||||||
if (!std::filesystem::exists(CONTENT_PATH_OT))
|
if (!std::filesystem::exists(CONFIG_PATH_OT))
|
||||||
{
|
{
|
||||||
std::cerr << "Build may not be pakless (Content folder not found). Ensure you downloaded the build from the Mercury server.\n";
|
std::cerr << "Build may not be pakless (Config folder not found). Ensure you downloaded the build from the Mercury server.\n";
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -316,7 +317,9 @@ int SetupOT()
|
|||||||
STARTUPINFOW startupInfo = { 0 };
|
STARTUPINFOW startupInfo = { 0 };
|
||||||
startupInfo.cb = sizeof(STARTUPINFO);
|
startupInfo.cb = sizeof(STARTUPINFO);
|
||||||
PROCESS_INFORMATION processInformation = { 0 };
|
PROCESS_INFORMATION processInformation = { 0 };
|
||||||
CreateProcessW((LPWSTR)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);
|
AssignProcessToJobObject(job, processInformation.hProcess);
|
||||||
|
|
||||||
@@ -383,7 +386,7 @@ int Setup18()
|
|||||||
std::wstring cmdl(BINARY_PATH_1_8);
|
std::wstring cmdl(BINARY_PATH_1_8);
|
||||||
cmdl += L" -skippatchcheck -epicportal -HTTP=WinInet -log";
|
cmdl += L" -skippatchcheck -epicportal -HTTP=WinInet -log";
|
||||||
|
|
||||||
CreateProcessW((LPWSTR)BINARY_PATH_1_8, &cmdl[0], nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation);
|
CreateProcessW(BINARY_PATH_1_8, &cmdl[0], nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation);
|
||||||
|
|
||||||
AssignProcessToJobObject(job, processInformation.hProcess);
|
AssignProcessToJobObject(job, processInformation.hProcess);
|
||||||
|
|
||||||
|
|||||||
6
README.md
Normal file
6
README.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Temporary, sloppily written Mercury launcher designed to keep things simple until the next update (eventually) releases.
|
||||||
|
|
||||||
|
Uses a bunch of libraries that I'm too lazy to write here, notably MinHook, libcurl & libzip
|
||||||
|
|
||||||
|
# Usage
|
||||||
|

|
||||||
Reference in New Issue
Block a user