fixes
This commit is contained in:
parent
c3891e613c
commit
4b32b836ea
@ -317,6 +317,7 @@ namespace arxan
|
|||||||
void search_and_patch_integrity_checks()
|
void search_and_patch_integrity_checks()
|
||||||
{
|
{
|
||||||
#ifdef PRECOMPUTED_INTEGRITY_CHECKS
|
#ifdef PRECOMPUTED_INTEGRITY_CHECKS
|
||||||
|
assert(game::base_address == 0x140000000);
|
||||||
search_and_patch_integrity_checks_precomputed();
|
search_and_patch_integrity_checks_precomputed();
|
||||||
#else
|
#else
|
||||||
// There seem to be 670 results.
|
// There seem to be 670 results.
|
||||||
|
@ -90,7 +90,7 @@ namespace auth
|
|||||||
return 0x110000100000000 | (::utils::cryptography::random::get_integer() & ~0x80000000);
|
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
|
class component final : public component_interface
|
||||||
|
@ -28,7 +28,7 @@ namespace thread_names
|
|||||||
{game::THREAD_CONTEXT_SERVER, "Server"},
|
{game::THREAD_CONTEXT_SERVER, "Server"},
|
||||||
{game::THREAD_CONTEXT_CINEMATIC, "Cinematic"},
|
{game::THREAD_CONTEXT_CINEMATIC, "Cinematic"},
|
||||||
{game::THREAD_CONTEXT_WINDOW, "Window"},
|
{game::THREAD_CONTEXT_WINDOW, "Window"},
|
||||||
{game::THREAD_CONTEXT_WINDOW, "Input"},
|
{game::THREAD_CONTEXT_INPUT, "Input"},
|
||||||
{game::THREAD_CONTEXT_DATABASE, "Database"},
|
{game::THREAD_CONTEXT_DATABASE, "Database"},
|
||||||
{game::THREAD_CONTEXT_SOUND_STREAM, "Sound Stream"},
|
{game::THREAD_CONTEXT_SOUND_STREAM, "Sound Stream"},
|
||||||
{game::THREAD_CONTEXT_SOUND, "Snd stream packet callback"},
|
{game::THREAD_CONTEXT_SOUND, "Snd stream packet callback"},
|
||||||
|
@ -180,8 +180,3 @@ namespace game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t operator"" _b(const uintptr_t ptr)
|
|
||||||
{
|
|
||||||
return game::base_address + ptr;
|
|
||||||
}
|
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
#include "structs.hpp"
|
#include "structs.hpp"
|
||||||
|
|
||||||
#define SERVER_CD_KEY "IW7MOD-CD-Key"
|
|
||||||
|
|
||||||
namespace game
|
namespace game
|
||||||
{
|
{
|
||||||
extern uint64_t base_address;
|
extern uint64_t base_address;
|
||||||
@ -60,6 +58,9 @@ namespace game
|
|||||||
void SV_CmdsMP_RequestMapRestart(bool loadScripts, bool migrate);
|
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"
|
#include "symbols.hpp"
|
||||||
|
Loading…
Reference in New Issue
Block a user