removing SDL_net
This commit is contained in:
parent
8e873c5dca
commit
abc7a1e708
@ -28,7 +28,7 @@
|
|||||||
//! SDL Rendering Target.
|
//! SDL Rendering Target.
|
||||||
#define ZE_SDL (2)
|
#define ZE_SDL (2)
|
||||||
//! Define the graphics backend for ZEngine to use. (Options are ZE_OGL,ZE_SDL,ZE_D3D)
|
//! 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 to include font support.
|
||||||
#define USE_SDL_TTF
|
#define USE_SDL_TTF
|
||||||
@ -43,18 +43,6 @@
|
|||||||
//! Define to use depreciated code that has not been entirely removed.
|
//! Define to use depreciated code that has not been entirely removed.
|
||||||
//#define DEPRECIATED
|
//#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
|
||||||
|
|
||||||
#endif //__ze_defines_h__
|
#endif //__ze_defines_h__
|
||||||
|
@ -37,9 +37,6 @@
|
|||||||
#ifdef USE_SDL_MIXER
|
#ifdef USE_SDL_MIXER
|
||||||
#include "SDL_mixer.h"
|
#include "SDL_mixer.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_SDL_NET
|
|
||||||
#include "SDL_net.h"
|
|
||||||
#endif
|
|
||||||
#ifdef USE_PHYSFS
|
#ifdef USE_PHYSFS
|
||||||
#include "physfs.h"
|
#include "physfs.h"
|
||||||
#include "external/physfsrwops.h"
|
#include "external/physfsrwops.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
\brief Central source file for ZEngine.
|
\brief Central source file for ZEngine.
|
||||||
|
|
||||||
Actual implementation of ZEngine singleton class, the core of 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
|
\author James Turk
|
||||||
**/
|
**/
|
||||||
|
|
||||||
@ -225,17 +225,6 @@ bool ZEngine::CreateDisplay(std::string title, std::string icon)
|
|||||||
}
|
}
|
||||||
#endif //USE_SDL_TTF
|
#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)
|
if(!mInitialized)
|
||||||
mPausedTime = SDL_GetTicks();
|
mPausedTime = SDL_GetTicks();
|
||||||
mActive = true;
|
mActive = true;
|
||||||
@ -249,10 +238,6 @@ void ZEngine::CloseDisplay()
|
|||||||
if(mInitialized)
|
if(mInitialized)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef USE_SDL_NET
|
|
||||||
SDLNet_Quit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_SDL_TTF
|
#ifdef USE_SDL_TTF
|
||||||
TTF_Quit();
|
TTF_Quit();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user