From f9227cef5bcbe9f3a3fe3487ed1cc358cff37932 Mon Sep 17 00:00:00 2001 From: louie Date: Wed, 23 Dec 2020 18:20:46 -0800 Subject: Fixed Windows configuration auto-generation, added new setLauncherRaw option --- group.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'group.c') diff --git a/group.c b/group.c index 821adf3..a34556f 100644 --- a/group.c +++ b/group.c @@ -17,6 +17,7 @@ typedef struct group{ struct entry *tail; struct group *next; int entry_count; + bool launcher_quotes; //set by a group option whether or not the launcher should be wrapped by quotes } GROUP; GROUP *create_group(char *new_name); @@ -32,6 +33,8 @@ void set_gflags(GROUP *g, char *p); ENTRY *get_ghead(GROUP *g); int get_ecount(GROUP *g); void set_ecount(GROUP *g, int new_count); //for use in hiding entries +void set_gquotes(GROUP *g, bool b); +bool get_gquotes(GROUP *g); int get_gcount(); void group_debug(); //debug function to output all groups @@ -50,6 +53,7 @@ GROUP *create_group(char *new_name){ new->tail = NULL; new->next = NULL; new->entry_count = 0; + new->launcher_quotes = true; group_count++; return new; @@ -228,6 +232,15 @@ void set_ecount(GROUP *g, int new_count){ g->entry_count = new_count; } +void set_gquotes(GROUP *g, bool b){ + assert(g != NULL); + g->launcher_quotes = b; +} + +bool get_gquotes(GROUP *g){ + return g->launcher_quotes; +} + int get_gcount(){ return group_count; } -- cgit