removing SDL_net

This commit is contained in:
James Turk 2003-08-08 04:03:32 +00:00
parent 8e873c5dca
commit abc7a1e708
3 changed files with 2 additions and 32 deletions

View File

@ -28,7 +28,7 @@
//! SDL Rendering Target.
#define ZE_SDL (2)
//! Define the graphics backend for ZEngine to use. (Options are ZE_OGL,ZE_SDL,ZE_D3D)
#define GFX_BACKEND (ZE_SDL)
#define GFX_BACKEND (ZE_OGL)
//! Define to include font support.
#define USE_SDL_TTF
@ -43,18 +43,6 @@
//! Define to use depreciated code that has not been entirely removed.
//#define DEPRECIATED
#ifdef USE_SDL_NET
namespace ZE
{
//! Maximum message length (for SDL_net). (10kb [10240] default)
const int MAX_MSG_LEN = 10240;
//! Define a ZByte as a plain char (for SDL_net).
typedef char ZByte;
}
#endif
#endif //__ze_defines_h__

View File

@ -37,9 +37,6 @@
#ifdef USE_SDL_MIXER
#include "SDL_mixer.h"
#endif
#ifdef USE_SDL_NET
#include "SDL_net.h"
#endif
#ifdef USE_PHYSFS
#include "physfs.h"
#include "external/physfsrwops.h"

View File

@ -13,7 +13,7 @@
\brief Central source file for ZEngine.
Actual implementation of ZEngine singleton class, the core of ZEngine.
<br>$Id: ZE_ZEngine.cpp,v 1.56 2003/08/08 03:54:34 cozman Exp $<br>
<br>$Id: ZE_ZEngine.cpp,v 1.57 2003/08/08 04:03:32 cozman Exp $<br>
\author James Turk
**/
@ -225,17 +225,6 @@ bool ZEngine::CreateDisplay(std::string title, std::string icon)
}
#endif //USE_SDL_TTF
#ifdef USE_SDL_NET
if(!mInitialized)
{
if(SDLNet_Init() < 0)
{
ReportError(ZERR_NET_INIT,SDLNet_GetError());
status = false; //possible to go on without SDL_Net
}
}
#endif //USE_SDL_NET
if(!mInitialized)
mPausedTime = SDL_GetTicks();
mActive = true;
@ -249,10 +238,6 @@ void ZEngine::CloseDisplay()
if(mInitialized)
{
#ifdef USE_SDL_NET
SDLNet_Quit();
#endif
#ifdef USE_SDL_TTF
TTF_Quit();
#endif