From ec25aeadbd13120a1af76271278ad0863402ac89 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 26 Oct 2021 19:59:36 -0500 Subject: Added more debugging Add some more print statements when we're starting up to get a better idea of what's failing. --- src/client/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/client/main.cpp') diff --git a/src/client/main.cpp b/src/client/main.cpp index 2d93828..d6184e0 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -153,20 +153,30 @@ int main(int argc, char *argv[]){ printf("Failed to initalize device\n"); return 1; } + printf("Changing working directory..."); device->getFileSystem()->changeWorkingDirectoryTo(path); + printf("[OK]\n"); //ILogger* log = device->getLogger(); //log->setLogLevel(ELL_NONE); //Loads libraries for interfaceing with irrlicht + printf("Loading lua libs..."); assert(lua_gettop(L) == 0); luaL_openlibs(state); assert(lua_gettop(L) == 0); + printf("[OK]\n"); + printf("Loading lua libs..."); loadIrrLibs(state,device); assert(lua_gettop(L) == 0); + printf("[OK]\n"); + printf("Loading networking libs..."); loadNetLibs(state); assert(lua_gettop(L) == 0); + printf("[OK]\n"); + printf("Loading shared libs..."); loadCommonLibs(state); assert(lua_gettop(L) == 0); - printf("Loadded irr libs...\n"); + printf("[OK]\n"); + printf("All libs loaded.\n"); //Sets the global event handeler printf("Creating event receiver\n"); GlobalEventReceiver ger = GlobalEventReceiver(device); -- cgit v1.2.3-70-g09d2