aboutsummaryrefslogtreecommitdiff
path: root/src/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index 949cd6b..9c22567 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -5,6 +5,7 @@ extern "C" {
#include <lauxlib.h>
#include <lualib.h>
}
+#define _IRR_STATIC_LIB_
#include <irrlicht.h>
#include <chrono>
@@ -109,7 +110,7 @@ int setbackgroundcolor(lua_State* L){
}
int main(int argc, char *argv[]){
- printf("Brok[en]gine Client");
+ printf("Brok[en]gine Client\n");
// Initialize bullet
phys_genesis();
@@ -120,11 +121,14 @@ int main(int argc, char *argv[]){
loadLLibs(state);
//Defined in initdevice.cpp, creates the irrlicht device
device = spawnIrrDevice(state);
+ ILogger* log = device->getLogger();
+ log->setLogLevel(ELL_NONE);
if (!device)
return 1;
//Loads libraries for interfaceing with irrlicht
loadIrrLibs(state,device);
loadNetLibs(state);
+ luaL_openlibs(state);
printf("Loadded irr libs...\n");
//Sets the global event handeler
GlobalEventReceiver ger = GlobalEventReceiver(device);
@@ -144,7 +148,7 @@ int main(int argc, char *argv[]){
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
- device->setWindowCaption(L"Brok[en]gine Client");
+ device->setWindowCaption(L"Brok[en]gine Client v0.1\n");
printf("Everything registered, about to start running device!\n");