mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
organizing stuff.
This commit is contained in:
parent
3b0bff2f74
commit
3f5bad938a
23 changed files with 805 additions and 374 deletions
|
@ -28,18 +28,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <jmutex.h>
|
||||
#include <jmutexautolock.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#define sleep_ms(x) Sleep(x)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#define sleep_ms(x) usleep(x*1000)
|
||||
#endif
|
||||
|
||||
#include "common_irrlicht.h"
|
||||
#include "debug.h"
|
||||
#include "strfnd.h"
|
||||
#include "exceptions.h"
|
||||
#include "porting.h"
|
||||
|
||||
extern const v3s16 g_26dirs[26];
|
||||
|
||||
|
@ -404,7 +397,7 @@ class IrrlichtWrapper;
|
|||
class TimeTaker
|
||||
{
|
||||
public:
|
||||
TimeTaker(const char *name, IrrlichtWrapper *irrlicht, u32 *result=NULL);
|
||||
TimeTaker(const char *name, u32 *result=NULL);
|
||||
|
||||
~TimeTaker()
|
||||
{
|
||||
|
@ -415,7 +408,6 @@ public:
|
|||
|
||||
private:
|
||||
const char *m_name;
|
||||
IrrlichtWrapper *m_irrlicht;
|
||||
u32 m_time1;
|
||||
bool m_running;
|
||||
u32 *m_result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue