From 468126196aba8aa60289393d5c0e5c8b3b2efcfb Mon Sep 17 00:00:00 2001 From: louie Date: Sun, 20 Dec 2020 14:30:06 -0800 Subject: Built framework for config auto-generation --- draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 7afcd94..7e58d23 100644 --- a/draw.c +++ b/draw.c @@ -29,7 +29,6 @@ void switch_col(); void trav_col(int new_i); int locateChar(char input); char *get_launch(); -char *compat_convert(char *path, int mode); #if defined _WIN32 || defined _WIN64 void win_launch(); #endif @@ -57,7 +56,11 @@ int main(int argc, char **argv){ //if a config path was given as an argument, set it accordingly if(argc > 2 && (!strcmp(argv[1], "-c") || !strcmp(argv[1], "--cfg_path"))) strcpy(cfg_path, argv[2]); +#if defined _WIN32 || defined _WIN64 + else strcpy(cfg_path, find_config_win()); +#else else strcpy(cfg_path, find_config()); +#endif //Fill Groups cfg_interp(cfg_path); //read the contents of the cfg file -- cgit