summaryrefslogtreecommitdiff
path: root/src/read_cfg.c
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-14 16:51:06 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-14 16:51:06 -0400
commit9adae33d5ffa4a72771266ba127f9ccc9b4b5221 (patch)
tree57afdba3020cf3f7083b432b3524c16d98c2b882 /src/read_cfg.c
parent243853cd1692c56cae8642dd6bb35c3c75ff54f7 (diff)
Working support for setting launcher flags
Diffstat (limited to 'src/read_cfg.c')
-rw-r--r--src/read_cfg.c8
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