From 6543a9aa301a8ebc67ff50a880bcff2e496fa17e Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 20 Oct 2018 14:03:22 -0400 Subject: Added more descriptive error when init.lua fails When init.lua fails, brokengine_client prints out the path to init.lua, usefull for when game is not executing from default path. --- src/client/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/main.cpp') diff --git a/src/client/main.cpp b/src/client/main.cpp index 4885d8a..6336dc1 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -149,7 +149,7 @@ int main(int argc, char *argv[]){ device->setEventReceiver(&ger); int iErr = luaL_dofile(state,"init.lua"); if(iErr != 0){ - printf("Failed to open lua file:../data/init.lua\n"); + printf("Failed to open lua file:%s/init.lua\n",path); lua_error(state); } -- cgit v1.2.3-70-g09d2