mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-06 16:30:47 +00:00
95c906e21a
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
18 lines
299 B
C++
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");
|
|
}
|
|
|