Completely strip Miles SDK from dedicated

This commit is contained in:
Amos 2022-02-23 21:03:06 +01:00
parent cfa572f20e
commit 8c940fcbc8
2 changed files with 6 additions and 5 deletions

View File

@ -259,8 +259,9 @@ void Dedicated_Init()
// RUNTIME: GL_SCREEN
//-------------------------------------------------------------------------
{
SCR_BeginLoadingPlaque.Offset(0x82).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // JNE --> JMP | virtual call to 'CHLClient::CHudMessage'.
SCR_BeginLoadingPlaque.Offset(0xA4).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // JNE --> JMP | virtual call to 'CEngineVGui::OnLevelLoadingStarted'.
SCR_BeginLoadingPlaque.Offset(0x5B).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // CAL --> NOP | virtual call to 'CHLClient::MilesQueueEvent'.
SCR_BeginLoadingPlaque.Offset(0x82).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // CAL --> NOP | virtual call to 'CHLClient::CHudMessage'.
SCR_BeginLoadingPlaque.Offset(0xA4).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // CAL --> NOP | virtual call to 'CEngineVGui::OnLevelLoadingStarted'.
SCR_BeginLoadingPlaque.Offset(0x1D6).Patch({ 0xEB, 0x27 }); // JNE --> JMP | Prevent connect command from crashing by invalid call to UI function.
}

View File

@ -66,12 +66,12 @@ namespace
{
#if !defined (DEDICATED)
MODULE g_mGameDll = MODULE("r5apex.exe");
#else // No DX imports.
MODULE g_mGameDll = MODULE("r5apex_ds.exe");
#endif // !DEDICATED
MODULE g_mRadVideoToolsDll = MODULE("bink2w64.dll");
MODULE g_mRadAudioDecoderDll = MODULE("binkawin64.dll");
MODULE g_mRadAudioSystemDll = MODULE("mileswin64.dll");
#else // No DirectX and Miles imports.
MODULE g_mGameDll = MODULE("r5apex_ds.exe");
#endif // !DEDICATED
}
#define MEMBER_AT_OFFSET(varType, varName, offset) \