From cdea6b0e8c1e51c9962f73e183a3bd72ed63b40f Mon Sep 17 00:00:00 2001 From: Louie S Date: Sun, 6 Nov 2022 14:53:23 -0800 Subject: Restructure repository --- windows/cache.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 windows/cache.c (limited to 'windows/cache.c') diff --git a/windows/cache.c b/windows/cache.c deleted file mode 100644 index a7dd81e..0000000 --- a/windows/cache.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include -#include -#include -#include - -#include "../include/cache.h" -#include "../include/read_cfg.h" - -char *get_cache_path(bool create){ - char *path = malloc(sizeof(char) * BUF_LEN); - char *appdata = getenv("APPDATA"); - - if(appdata == NULL){ - printf("Failed to save cache data: APPDATA is not set\n"); - free(path); - return NULL; - } - - //if create is asserted, build the path to the file - if(create){ - sprintf(path, "%s%ctml%c", appdata, sep, sep); - mkdir(path); - } - - sprintf(path, "%s%ctml%ccache.bin", appdata, sep, sep); - - return path; -} -- cgit