mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[raknet] Fix compilation errors
This commit is contained in:
parent
da5c20cf2b
commit
5ae650a572
@ -3,6 +3,11 @@
|
||||
#ifndef __NETWORK_TYPES_H
|
||||
#define __NETWORK_TYPES_H
|
||||
|
||||
#include "Export.h"
|
||||
|
||||
/// Given a number of bits, return how many bytes are needed to represent that.
|
||||
#define BITS_TO_BYTES(x) (((x)+7)>>3)
|
||||
|
||||
// Define __GET_TIME_64BIT if you want to use large types for GetTime (takes more bandwidth when you transmit time though!)
|
||||
// You would want to do this if your system is going to run long enough to overflow the millisecond counter (over a month)
|
||||
#ifdef __GET_TIME_64BIT
|
||||
@ -28,6 +33,10 @@ struct RAK_DLL_EXPORT PlayerID
|
||||
/// This represents a user message from another system.
|
||||
struct Packet
|
||||
{
|
||||
/// The length of the data in bytes
|
||||
/// \deprecated You should use bitSize.
|
||||
unsigned int length;
|
||||
|
||||
/// The data from the sender
|
||||
unsigned char* data;
|
||||
};
|
||||
|
@ -283,3 +283,9 @@ void RakClient::vftable_D8()
|
||||
{
|
||||
// TODO: RakClient::vftable_D8() (saco 10034A20) (server L: 8069550) (bot W: 403260 L: 806CF0C)
|
||||
}
|
||||
|
||||
void RakClient::vftable_DC()
|
||||
{
|
||||
// TODO: RakClient::vftable_DC() (bot L: 0806CF1A)
|
||||
}
|
||||
|
||||
|
0
raknet/SocketLayer.cpp
Normal file
0
raknet/SocketLayer.cpp
Normal file
12
raknet/SocketLayer.h
Normal file
12
raknet/SocketLayer.h
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#ifndef __SOCKET_LAYER_H
|
||||
#define __SOCKET_LAYER_H
|
||||
|
||||
class SocketLayer
|
||||
{
|
||||
|
||||
public:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
8
raknet/Types.h
Normal file
8
raknet/Types.h
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
// Rotation
|
||||
#define ROL32(n, r) ( ((n) << (r)) | ((n) >> (32 - (r))) ) /* only works for u32 */
|
||||
|
||||
#endif // TYPES_H
|
Loading…
Reference in New Issue
Block a user