3rdparty: add MultiEmulator by 2010kohtep

* patched to be portable, turned into a static library
* integrated to the engine
This commit is contained in:
Alibek Omarov
2024-10-10 19:06:26 +03:00
parent ec11683dc5
commit ae2ad6ddf2
26 changed files with 3402 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
#include "multi_emulator.h"
int GenerateOldRevEmu(void* pDest, int nSteamID)
{
auto pTicket = (int*)pDest;
auto pbTicket = (unsigned char*)pDest;
pTicket[0] = 0xFFFF; // +0, header
pTicket[1] = (nSteamID ^ 0xC9710266) << 1; // +4, SteamId
*(short *)&pbTicket[8] = 0; // +8, unknown, in original emulator must be 0
return 10;
}