FIx anticheat stuff
This commit is contained in:
parent
77f38525c4
commit
50dfee6db7
@ -85,14 +85,14 @@ namespace Components
|
||||
|
||||
void Logger::Flush()
|
||||
{
|
||||
if (!Game::Sys_IsMainThread())
|
||||
{
|
||||
while (!Logger::MessageQueue.empty())
|
||||
{
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
}
|
||||
else
|
||||
// if (!Game::Sys_IsMainThread())
|
||||
// {
|
||||
// while (!Logger::MessageQueue.empty())
|
||||
// {
|
||||
// std::this_thread::sleep_for(10ms);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
{
|
||||
Logger::Frame();
|
||||
}
|
||||
|
@ -789,10 +789,12 @@ namespace Components
|
||||
|
||||
void Zones::InstallPatches(int version)
|
||||
{
|
||||
bool patch = (version >= VERSION_ALPHA2);
|
||||
Zones::ZoneVersion = version;
|
||||
AssetHandler::ClearRelocations();
|
||||
|
||||
if (Zones::ZoneVersion == version) return;
|
||||
Zones::ZoneVersion = version;
|
||||
|
||||
bool patch = (version >= VERSION_ALPHA2);
|
||||
if (Zones::ZoneVersion == VERSION_ALPHA2 || Zones::ZoneVersion == VERSION_ALPHA3 || Zones::ZoneVersion == XFILE_VERSION)
|
||||
{
|
||||
Utils::Hook::Set<DWORD>(0x4158F4, version);
|
||||
@ -890,6 +892,8 @@ namespace Components
|
||||
|
||||
Zones::Zones()
|
||||
{
|
||||
Zones::ZoneVersion = 0;
|
||||
|
||||
// Ignore missing soundaliases for now
|
||||
// TODO: Include them in the dependency zone!
|
||||
Utils::Hook::Nop(0x644207, 5);
|
||||
|
Loading…
Reference in New Issue
Block a user