diff options
Diffstat (limited to 'src/read_cfg.c')
-rw-r--r-- | src/read_cfg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/read_cfg.c b/src/read_cfg.c index d9491bb..05146aa 100644 --- a/src/read_cfg.c +++ b/src/read_cfg.c @@ -188,10 +188,16 @@ void add_groups(lua_State *L, int table_stack_index, GROUP ***g) { // set the launcher, if applicable lua_pushstring(L, "Launcher"); lua_gettable(L, group_table_index); - printf("Found launcher: %s\n", lua_tostring(L, -1)); if(lua_type(L, -1) == LUA_TSTRING) { set_gprog((*g)[i], lua_tostring(L, -1)); } + + // set the launcher flags, if applicable + lua_pushstring(L, "Flags"); + lua_gettable(L, group_table_index); + if(lua_type(L, -1) == LUA_TSTRING) { + set_gflags((*g)[i], lua_tostring(L, -1)); + } } } // pop the top of the stack down to the key of the group |