This commit is contained in:
quaK 2023-03-09 10:39:36 +02:00
parent c3891e613c
commit 4b32b836ea
5 changed files with 7 additions and 10 deletions

View File

@ -317,6 +317,7 @@ namespace arxan
void search_and_patch_integrity_checks()
{
#ifdef PRECOMPUTED_INTEGRITY_CHECKS
assert(game::base_address == 0x140000000);
search_and_patch_integrity_checks_precomputed();
#else
// There seem to be 670 results.

View File

@ -90,7 +90,7 @@ namespace auth
return 0x110000100000000 | (::utils::cryptography::random::get_integer() & ~0x80000000);
}
return 0x110000100000000 | get_key().get_hash();
return get_key().get_hash();
}
class component final : public component_interface

View File

@ -28,7 +28,7 @@ namespace thread_names
{game::THREAD_CONTEXT_SERVER, "Server"},
{game::THREAD_CONTEXT_CINEMATIC, "Cinematic"},
{game::THREAD_CONTEXT_WINDOW, "Window"},
{game::THREAD_CONTEXT_WINDOW, "Input"},
{game::THREAD_CONTEXT_INPUT, "Input"},
{game::THREAD_CONTEXT_DATABASE, "Database"},
{game::THREAD_CONTEXT_SOUND_STREAM, "Sound Stream"},
{game::THREAD_CONTEXT_SOUND, "Snd stream packet callback"},

View File

@ -179,9 +179,4 @@ namespace game
Cbuf_AddCall(0, SV_CmdsMP_CheckLoadGame);
}
}
}
uintptr_t operator"" _b(const uintptr_t ptr)
{
return game::base_address + ptr;
}

View File

@ -2,8 +2,6 @@
#include "structs.hpp"
#define SERVER_CD_KEY "IW7MOD-CD-Key"
namespace game
{
extern uint64_t base_address;
@ -60,6 +58,9 @@ namespace game
void SV_CmdsMP_RequestMapRestart(bool loadScripts, bool migrate);
}
uintptr_t operator"" _b(const uintptr_t ptr);
inline uintptr_t operator"" _b(const uintptr_t ptr)
{
return game::base_address + ptr;
}
#include "symbols.hpp"