1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

organizing stuff.

This commit is contained in:
Perttu Ahola 2010-12-21 18:08:24 +02:00
parent 3b0bff2f74
commit 3f5bad938a
23 changed files with 805 additions and 374 deletions

View file

@ -20,18 +20,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef MAIN_HEADER
#define MAIN_HEADER
#include <string>
extern std::string getTimestamp();
#define DTIME (getTimestamp()+": ")
#include <jmutex.h>
#include "irrlichtwrapper.h"
// Settings
extern Settings g_settings;
#include <fstream>
// A thread safe wrapper to irrlicht
// On a server build, this is always NULL.
extern IrrlichtWrapper *g_irrlicht;
// Debug streams
#include <fstream>
extern std::ostream *dout_con_ptr;
extern std::ostream *derr_con_ptr;
extern std::ostream *dout_client_ptr;
@ -46,14 +47,5 @@ extern std::ostream *derr_server_ptr;
#define dout_server (*dout_server_ptr)
#define derr_server (*derr_server_ptr)
/*#ifndef SERVER
#include "utility.h"
extern TextureCache g_texturecache;
#endif*/
#include "irrlichtwrapper.h"
//extern IrrlichtDevice *g_device;
extern IrrlichtWrapper *g_irrlicht;
#endif