Fix compile error

This commit is contained in:
TotallyNotElite 2018-12-22 13:35:56 +01:00
parent 4ce152cb58
commit ab8c3c1735
3 changed files with 5 additions and 15 deletions

View File

@ -57,7 +57,6 @@ sudo gdb -n -q -batch \
-ex "call \$dlopen(\"/lib/i386-linux-gnu/$FILENAME\", 1)" \
-ex "call dlerror()" \
-ex 'print (char *) $2' \
-ex "catch syscall exit exit_group" \
-ex "detach" \
-ex "quit"

View File

@ -120,25 +120,17 @@ void CreateInterfaces()
"C7 04 24 ? ? ? ? E8 ? ? ? ? C9 C3");
logging::Info("SteamAPI: 0x%08x", sig_steamapi);
void **SteamAPI_engine = *reinterpret_cast<void ***>(sig_steamapi + 36);
logging::Info("A");
g_ISteamFriends = reinterpret_cast<ISteamFriends *>(SteamAPI_engine[2]);
logging::Info("A");
}
if (g_ISteamFriends == nullptr)
{
logging::Info("A");
// FIXME SIGNATURE
g_ISteamFriends = g_ISteamClient->GetISteamFriends(su, sp, "SteamFriends002");
logging::Info("A");
}
logging::Info("B");
//g_GlobalVars = **(reinterpret_cast<CGlobalVarsBase ***>((uintptr_t) 11 + gSignatures.GetClientSignature("55 89 E5 83 EC ? 8B 45 08 8B 15 ? ? ? ? F3 0F 10")));
g_GlobalVars = **reinterpret_cast<CGlobalVarsBase ***>(gSignatures.GetClientSignature("8B 15 ? ? ? ? F3 0F 10 88 D0 08 00 00") + 2);
logging::Info("A");
g_IPrediction = BruteforceInterface<IPrediction>("VClientPrediction", sharedobj::client());
logging::Info("A");
g_IGameMovement = BruteforceInterface<IGameMovement>("GameMovement", sharedobj::client());
logging::Info("A");
IF_GAME(IsTF2())
{
// g_IMoveHelper =

View File

@ -181,15 +181,14 @@ static bool patched_report;
void reportall()
{
typedef uint64_t (*ReportPlayer_t)(uint64_t, int);
static uintptr_t addr2 = gSignatures.GetClientSignature("55 89 E5 57 56 53 81 EC ? ? ? ? 8B 5D ? 8B 7D ? 89 D8");
static ReportPlayer_t ReportPlayer_fn = ReportPlayer_t(addr2);
if (!addr2)
static uintptr_t addr1 = gSignatures.GetClientSignature("55 89 E5 57 56 53 81 EC ? ? ? ? 8B 5D ? 8B 7D ? 89 D8");
static ReportPlayer_t ReportPlayer_fn = ReportPlayer_t(addr1);
if (!addr1)
return;
if (!patched_report)
{
static uintptr_t addr2 = gSignatures.GetClientSignature("73 ? 80 7D ? ? 74 ? F3 0F 10 0D") +0x2F;
static unsigned char patch[] = { 0x89, 0xe0 };
Patch((void *)addr2, (void *)patch, sizeof(patch));
BytePatch patch(gSignatures.GetClientSignature, "73 ? 80 7D ? ? 74 ? F3 0F 10 0D", 0x2F, { 0x89, 0xe0 });
patch.Patch();
patched_report = true;
}
player_info_s local;