mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Removed padding that was causing the structure to misalign with the game's one. Enabled 'SVC_UserMessage::Process()' hook (function works properly after the structure alignment).
36 lines
621 B
C
36 lines
621 B
C
#ifndef INETCHANNEL_H
|
|
#define INETCHANNEL_H
|
|
|
|
#define NET_FRAMES_BACKUP 128
|
|
#define FLOW_OUTGOING 0
|
|
#define FLOW_INCOMING 1
|
|
#define MAX_FLOWS 2 // in & out
|
|
|
|
struct IClientMessageHandler
|
|
{
|
|
void* __vftable /*VFT*/;
|
|
};
|
|
|
|
struct INetChannelHandler
|
|
{
|
|
void* __vftable /*VFT*/;
|
|
};
|
|
|
|
struct CS_INetChannelHandler : INetChannelHandler
|
|
{};
|
|
|
|
typedef struct netpacket_s netpacket_t;
|
|
typedef struct __declspec(align(8)) netpacket_s
|
|
{
|
|
v_netadr_t from;
|
|
int source;
|
|
double received;
|
|
uint8_t* pData;
|
|
bf_read message;
|
|
int size;
|
|
int wiresize;
|
|
char stream;
|
|
netpacket_s* pNext;
|
|
} netpacket_t;
|
|
#endif // !INETCHANNEL_H
|