mirror of
https://github.com/absoluteSpacehead/MercuryLauncher.git
synced 2026-01-13 03:02:21 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9237818eb9 | ||
|
|
d274be0842 | ||
|
|
2687eaddf3 | ||
|
|
b138c34b8c | ||
|
|
68650aab7d | ||
|
|
3eab3b0e2c | ||
|
|
650f169232 |
@@ -30,6 +30,7 @@ HANDLE job;
|
||||
void Exit()
|
||||
{
|
||||
std::cout << "Press any key to exit.\n";
|
||||
TerminateJobObject(job, 0);
|
||||
_getch();
|
||||
}
|
||||
|
||||
@@ -263,9 +264,9 @@ int SetupOT()
|
||||
return 1;
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
@@ -316,7 +317,7 @@ int SetupOT()
|
||||
STARTUPINFOW startupInfo = { 0 };
|
||||
startupInfo.cb = sizeof(STARTUPINFO);
|
||||
PROCESS_INFORMATION processInformation = { 0 };
|
||||
CreateProcessW((LPWSTR)BINARY_PATH_OT, nullptr, nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation);
|
||||
CreateProcessW(BINARY_PATH_OT, nullptr, nullptr, nullptr, FALSE, 0x0, nullptr, nullptr, &startupInfo, &processInformation);
|
||||
|
||||
AssignProcessToJobObject(job, processInformation.hProcess);
|
||||
|
||||
@@ -383,7 +384,7 @@ int Setup18()
|
||||
std::wstring cmdl(BINARY_PATH_1_8);
|
||||
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);
|
||||
|
||||
|
||||
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