9 Commits

Author SHA1 Message Date
Alexander
ab6cccfd84 i fucked up 2025-01-05 23:25:21 +00:00
Alexander
cd561c6721 auto login for ot6.5 2025-01-04 03:34:54 +00:00
Alexander
9237818eb9 Kill job on failure 2024-12-31 23:11:38 +00:00
Alexander
d274be0842 Merge branch 'main' of https://github.com/absoluteSpacehead/MercuryLauncher 2024-12-31 23:08:19 +00:00
Alexander
2687eaddf3 OOPS I WAS SEARCHING FOR THE WRONG FOLDER!!!!! 2024-12-31 23:08:18 +00:00
Alexander
b138c34b8c i hate this fuckin website 2024-12-31 22:49:02 +00:00
Alexander
68650aab7d actual description 2024-12-31 22:48:47 +00:00
Alexander
3eab3b0e2c Create README.md 2024-12-31 22:45:40 +00:00
Alexander
650f169232 what the hell am i doing here man 2024-12-31 21:41:37 +00:00
2 changed files with 14 additions and 5 deletions

View File

@@ -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,9 @@ 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);
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);
@@ -383,7 +386,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);
@@ -494,7 +497,7 @@ int main()
}
else
{
std::cerr << "No binaries could be found. Ensure the launcher is placed alongside the FortniteGame and Content folders.\n";
std::cerr << "No binaries could be found. Ensure the launcher is placed alongside the FortniteGame and Engine folders.\n";
Exit();
return 1;
}

6
README.md Normal file
View 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
![image](https://github.com/user-attachments/assets/ee3285e7-213e-4c05-82f6-2fd320ee0244)