forked from rosebudai/OpenRCT2-Web
Move Convert definitions to TcpSocket.h
This commit is contained in:
1 parent
5787a0bf90
commit
d0a05df106
3 files changed
+8
-6
No files matched your search
@@ -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