raze-gles/source/thirdparty/src/enet.cpp
Christoph Oelckers 95c906e21a - removed the ENet dependency from gamecontrol.cpp as well.
The global init/shutdown code has been moved to the enet.cpp stub so that now only the networking files which need access include enet.h
2020-02-03 21:14:35 +01:00

18 lines
299 B
C++

#define ENET_IMPLEMENTATION
#include "enet.h"
#include "printf.h"
bool gHaveNetworking;
void ShutdownENet()
{
if (gHaveNetworking) enet_deinitialize();
}
void InitENet()
{
gHaveNetworking = !enet_initialize();
if (!gHaveNetworking)
Printf("An error occurred while initializing ENet.\n");
}