aboutsummaryrefslogtreecommitdiff
path: root/src/client/initdevice.cpp
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2021-10-26 19:59:36 -0500
committerAlexander M Pickering <alex@cogarr.net>2021-10-26 19:59:36 -0500
commitec25aeadbd13120a1af76271278ad0863402ac89 (patch)
tree4da9bc4740f0fbfca448300d8ab12fd9fe1d3911 /src/client/initdevice.cpp
parent488d7c65e9a7fb86ed338e01e30031eebb48e9d2 (diff)
downloadbrokengine-ec25aeadbd13120a1af76271278ad0863402ac89.tar.gz
brokengine-ec25aeadbd13120a1af76271278ad0863402ac89.tar.bz2
brokengine-ec25aeadbd13120a1af76271278ad0863402ac89.zip
Added more debugging
Add some more print statements when we're starting up to get a better idea of what's failing.
Diffstat (limited to 'src/client/initdevice.cpp')
-rw-r--r--src/client/initdevice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/initdevice.cpp b/src/client/initdevice.cpp
index 40a1e30..22b88d1 100644
--- a/src/client/initdevice.cpp
+++ b/src/client/initdevice.cpp
@@ -183,9 +183,13 @@ IrrlichtDevice* spawnIrrDevice(lua_State* L, char *path){
printf("Failed to open lua file:%s\n", filename);
}
settingsFromTable(L,&p);
+ printf("Creating device...");
IrrlichtDevice* dev = createDeviceEx(p);
- if(!dev)
+ printf("[OK]\n");
+ if(!dev){
+ printf("Failed to create device\n");
exit(1);
+ }
dev->setWindowCaption(L"Brokengine");
lua_pop(L,1);
return dev;