Small changes

This commit is contained in:
FutureRave 2022-02-09 23:40:27 +00:00
parent 79e75c83fb
commit dc91e126df
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
3 changed files with 5 additions and 4 deletions

View File

@ -320,7 +320,7 @@ namespace Components
if (input == endptr)
{
Logger::Print("Warning: %s is not a valid input\n"
"Usage: %s optional <number of bots> or optional <all>\n",
"Usage: %s optional <number of bots> or optional <\"all\">\n",
input, params->get(0));
}
}

View File

@ -972,7 +972,7 @@ namespace Components
if (url == nullptr)
{
Game::Scr_ParamError(0, "^1HttpGet: Illegal parameters!\n");
Game::Scr_ParamError(0, "^1HttpGet: Illegal parameter!\n");
return;
}

View File

@ -709,8 +709,9 @@ namespace Components
Utils::Hook(0x61E3AD, Script::RuntimeError, HOOK_CALL).install()->quick();
Utils::Hook(0x621976, Script::RuntimeError, HOOK_CALL).install()->quick();
Utils::Hook(0x62246E, Script::RuntimeError, HOOK_CALL).install()->quick();
// Nullsub GScr_CheckAllowedToSetPersistentData like it's done on IW5 to prevent spam
Utils::Hook::Set<BYTE>(0x5F8DA0, 0xC3);
// Skip check in GScr_CheckAllowedToSetPersistentData to prevent log spam in RuntimeError.
// On IW5 the function is entirely nullsubbed
Utils::Hook::Set<BYTE>(0x5F8DBF, 0xEB);
Utils::Hook(0x612E8D, Script::FunctionError, HOOK_CALL).install()->quick();
Utils::Hook(0x612EA2, Script::FunctionError, HOOK_CALL).install()->quick();