mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
refactor!: Replace premake5 with CMake. (#551)
Co-authored-by: tupoy-ya <tupoy-ya@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "hooking.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void hooks::get_network_event_data(int64_t unk, rage::CEventNetwork* net_event)
|
||||
{
|
||||
switch (net_event->get_type()) {
|
||||
case 161: //CEventNetworkRemovedFromSessionDueToComplaints
|
||||
{
|
||||
g_notification_service->push_warning("Kicked", "You have been desync kicked.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return g_hooking->get_original<get_network_event_data>()(unk, net_event);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user