mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Move Convert definitions to TcpSocket.h
This commit is contained in:
@@ -511,6 +511,8 @@ bool InitialiseWSA()
|
||||
_wsaInitialised = true;
|
||||
}
|
||||
return _wsaInitialised;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -65,3 +65,9 @@ ITcpSocket * CreateTcpSocket();
|
||||
|
||||
bool InitialiseWSA();
|
||||
void DisposeWSA();
|
||||
|
||||
namespace Convert
|
||||
{
|
||||
uint16 HostToNetwork(uint16 value);
|
||||
uint16 NetworkToHost(uint16 value);
|
||||
}
|
||||
|
||||
@@ -250,12 +250,6 @@ private:
|
||||
uint8 * save_for_network(size_t &out_size, const std::vector<const ObjectRepositoryItem *> &objects) const;
|
||||
};
|
||||
|
||||
namespace Convert
|
||||
{
|
||||
uint16 HostToNetwork(uint16 value);
|
||||
uint16 NetworkToHost(uint16 value);
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
#else /* DISABLE_NETWORK */
|
||||
#define NETWORK_STREAM_ID "Multiplayer disabled"
|
||||
|
||||
Reference in New Issue
Block a user