Skip to content

Commit

Permalink
Remove Unneeded Pointers
Browse files Browse the repository at this point in the history
My god theres a lot of shit in here
  • Loading branch information
Rxann committed Jun 25, 2024
1 parent 783b6b3 commit 918d928
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/game/pointers/Pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,6 @@ namespace YimMenu
SendPacket = ptr.Add(10).Rip().As<Functions::SendPacket>();
});

constexpr auto getGamerOnlineState = Pattern<"E8 ?? ?? ?? ?? 84 C0 75 11 BF EE 03 00 00">("GetGamerOnlineState");
scanner.Add(getGamerOnlineState, [this](PointerCalculator ptr) {
GetGamerOnlineState = ptr.Add(1).Rip().As<Functions::GetGamerOnlineState>();
});

constexpr auto startGetSessionByGamerHandle = Pattern<"48 89 5C 24 20 8B C8 E8">("StartGetSessionByGamerHandle");
scanner.Add(startGetSessionByGamerHandle, [this](PointerCalculator ptr) {
StartGetSessionByGamerHandle = ptr.Add(3).Rip().As<Functions::StartGetSessionByGamerHandle>();
});

constexpr auto queuePacketPtrn = Pattern<"48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 54 41 55 41 56 41 57 48 83 EC 30 4C 8B F1 4D">("QueuePacket");
scanner.Add(queuePacketPtrn, [this](PointerCalculator ptr) {
QueuePacket = ptr.As<Functions::QueuePacket>();
Expand Down
4 changes: 0 additions & 4 deletions src/game/pointers/Pointers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ namespace YimMenu
using RequestControlOfNetObject = bool (*)(rage::netObject** netId, bool unk);
using SendPacket = bool (*)(rage::netConnectionManager* mgr, rage::netPeerAddress* adde, int connection_id, void* data, int size, int flags);
using QueuePacket = bool (*)(rage::netConnectionManager* mgr, int msg_id, void* data, int size, int flags, void* unk);
using GetGamerOnlineState = bool (*)(int profile_index, rage::rlGamerHandle* handles, uint32_t count, int* online_state, int* status);
using StartGetSessionByGamerHandle = bool (*)(int profile_index, rage::rlGamerHandle* handles, int count, void* result, int unk, bool* success, int* state);
using PostPresenceMessage = bool (*)(int localGamerIndex, rage::rlGamerInfo* recipients, int numRecipients, const char* msg, unsigned int ttlSeconds);
using SendNetInfoToLobby = bool (*)(rage::rlGamerInfo* player, int64_t a2, int64_t a3, DWORD* a4);
};
Expand Down Expand Up @@ -103,8 +101,6 @@ namespace YimMenu
PVOID PlayerHasJoined;
PVOID PlayerHasLeft;
Functions::GetNetworkPlayerFromPid GetNetPlayerFromPid;
Functions::GetGamerOnlineState GetGamerOnlineState;
Functions::StartGetSessionByGamerHandle StartGetSessionByGamerHandle;

// Voice
PVOID EnumerateAudioDevices;
Expand Down

0 comments on commit 918d928

Please sign in to comment.