diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-28 18:12:50 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-28 18:12:50 -0400 |
| commit | 61c0c9f53d3a57ee7fd5db5faa74c4b51e2da396 (patch) | |
| tree | 7f828d9557aa28ffcb4c7a1b9b3e3326f3ad0170 /src/client/initdevice.cpp | |
| parent | 33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904 (diff) | |
| download | brokengine-61c0c9f53d3a57ee7fd5db5faa74c4b51e2da396.tar.gz brokengine-61c0c9f53d3a57ee7fd5db5faa74c4b51e2da396.tar.bz2 brokengine-61c0c9f53d3a57ee7fd5db5faa74c4b51e2da396.zip | |
Lots of updates
* Networking is finally working
* Started moveing physics into the shared domain
* Streams now have a readString() and writeString() method
* streams are passed to the lua context for networking
* Refactored cameras and physboxes to use metatables
* Finally wrote the pushvector3* and popvector3* methods
* Fixed a few crashes in ;main
* Deleted a lot of code
Diffstat (limited to 'src/client/initdevice.cpp')
| -rw-r--r-- | src/client/initdevice.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/initdevice.cpp b/src/client/initdevice.cpp index e288863..e3af44c 100644 --- a/src/client/initdevice.cpp +++ b/src/client/initdevice.cpp @@ -148,13 +148,10 @@ void parseSetting(const char* settingname, lua_State* L, settings* set){ void settingsFromTable(lua_State *L, SIrrlichtCreationParameters* p){ lua_pushnil(L); settings* set = (settings*)malloc(sizeof(settings)); + printf("Loading settings:"); while(lua_next(L,-2) != 0){ - printf("%s - %s\n", - lua_typename(L, lua_type(L, -2)), - lua_typename(L, lua_type(L, -1))); if(lua_isstring(L,-2)){ const char* setstr = lua_tostring(L,-2); - printf("\tFound setting %s\n",setstr); parseSetting(setstr,L,set); }else{ printf("\tFound a non-string setting key! Key is a %s\n",luaL_typename(L,-1)); @@ -173,7 +170,7 @@ void settingsFromTable(lua_State *L, SIrrlichtCreationParameters* p){ p->WindowSize = set->windowsize; p->ZBufferBits = set->zbuffer; free(set); - printf("Settings loaded"); + printf("[OK]\n"); } IrrlichtDevice* spawnIrrDevice(lua_State* L){ |
