diff options
author | Louie S <louie@example.com> | 2022-11-06 14:53:23 -0800 |
---|---|---|
committer | Louie S <louie@example.com> | 2022-11-06 14:53:23 -0800 |
commit | cdea6b0e8c1e51c9962f73e183a3bd72ed63b40f (patch) | |
tree | 1e9f4261acfe48c0ef37dd64f2a589d1e13b89b1 /windows/draw.c | |
parent | e58f35f4580ad4377c3ba5dcaee5bbbd938713c6 (diff) |
Restructure repository
Diffstat (limited to 'windows/draw.c')
-rw-r--r-- | windows/draw.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/windows/draw.c b/windows/draw.c deleted file mode 100644 index 28bef68..0000000 --- a/windows/draw.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <stdbool.h> -#include <windows.h> - -#include "../include/draw.h" -#include "../include/entry.h" -#include "../include/group.h" - -void launch(){ - char *program = get_gprog(g[g_hover]); - char *flags = get_gflags(g[g_hover]); - char *path = get_epath(e[e_hover]); - bool quotes = get_gquotes(g[g_hover]); - char file[BUF_LEN]; - char params[BUF_LEN]; - - file[0] = '\0'; - - if(!(strcmp(program, "./"))){ - strcat(file, "/C "); - strcat(file, "\""); - strcat(file, path); - strcat(file, "\""); - ShellExecute(NULL, NULL, "cmd.exe", file, NULL, SW_HIDE); - } - - else{ - if(quotes) strcat(file, "\""); - strcat(file, program); - if(quotes) strcat(file, "\""); - - params[0] = '\0'; - if(flags[0] != '\0'){ - strcat(params, flags); - strcat(params, " "); - } - strcat(params, "\""); - strcat(params, path); - strcat(params, "\""); - - ShellExecute(NULL, NULL, file, params, NULL, SW_SHOW); - } - - return; -} |