1
0
mirror of synced 2024-11-15 07:17:35 +01:00

Merge pull request #71 from Boomslangnz/master

Add Freeplay toggle
This commit is contained in:
Reaver 2019-11-18 11:46:20 +02:00 committed by GitHub
commit 85c25b7040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -176,6 +176,12 @@ static InitFunction StarWarsEs3XLauncherFunc([]()
// Ignore Projector Error
injector::WriteMemory<BYTE>(imageBase + 0x35580, 0xC3, true);
if (ToBool(config["General"]["FreePlay"]))
{
injector::MakeNOP(imageBase + 0x4DD2F, 6, true);
injector::MakeNOP(imageBase + 0x4DBEA, 7, true);
}
hookPort = "COM3";
}, GameID::StarWarsEs3XLauncher);

View File

@ -51,6 +51,11 @@ DWORD WINAPI QuitGameThread(__in LPVOID lpParameter)
{
system("taskkill /f /im InpWrapper.exe");
}
if ((GameDetect::currentGame == GameID::StarWarsEs3X) || (GameDetect::currentGame == GameID::StarWarsJapEs3X) || (GameDetect::currentGame == GameID::StarWarsEs3XLauncher) || (GameDetect::currentGame == GameID::StarWarsJapEs3XLauncher))
{
system("taskkill /f /im RSLauncher.exe");
system("taskkill /f /im SWArcGame-Win64-Shipping.exe");
}
if (blaster)
{
FreeLibrary(blaster);