Merge pull request #10 from Werseter/profanity

Profanity Filtering patch by ABRAXAS
This commit is contained in:
MatrixMMOfficial 2023-11-01 11:51:27 -04:00 committed by GitHub
commit 2c1448d49a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,11 @@ int LiveStorage_GetActiveStatsSource_Detour()
return 1; return 1;
} }
bool ProfanityFilter_IsBadWord_Detour()
{
return false;
}
void hooks() void hooks()
{ {
process_script_file.create(0x141322350_g, ProcessScriptFile); process_script_file.create(0x141322350_g, ProcessScriptFile);
@ -145,6 +150,8 @@ void hooks()
lui_cod_luacall_enginenotifyserver_detour_impl.create(0x1419F7160_g, LUI_CoD_LuaCall_EngineNotifyServer_Detour); lui_cod_luacall_enginenotifyserver_detour_impl.create(0x1419F7160_g, LUI_CoD_LuaCall_EngineNotifyServer_Detour);
utils::hook::jump(0x141609140_g, ProfanityFilter_IsBadWord_Detour);
// remove FF Header version check // remove FF Header version check
// db_checkxfileversion.create(0x1411A7840_g, DB_CheckXFileVersion_Detour); // db_checkxfileversion.create(0x1411A7840_g, DB_CheckXFileVersion_Detour);
} }