generated from YimMenu/YimMenuV2
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace assign physical index. (#67)
Replaces assign physical index with individual hooks since assign physical index will not get called on player leaves.
- Loading branch information
Showing
7 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "core/hooking/DetourHook.hpp" | ||
#include "game/hooks/Hooks.hpp" | ||
#include "core/frontend/Notifications.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
#include "network/CNetGamePlayer.hpp" | ||
|
||
namespace YimMenu::Hooks | ||
{ | ||
void Info::PlayerHasJoined(CNetGamePlayer* player) | ||
{ | ||
BaseHook::Get<Info::PlayerHasJoined, DetourHook<decltype(&Info::PlayerHasJoined)>>()->Original()(player); | ||
|
||
LOG(INFO) << player->GetName() << " is joining your session."; | ||
} | ||
|
||
void Info::PlayerHasLeft(CNetGamePlayer* player) | ||
{ | ||
BaseHook::Get<Info::PlayerHasLeft, DetourHook<decltype(&Info::PlayerHasLeft)>>()->Original()(player); | ||
|
||
LOG(INFO) << player->GetName() << " has left your session."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters