From 3cb8d5ce252c246e2218a05968dc10db38116994 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 4 Feb 2020 10:32:16 +0100 Subject: config localtion --- src/windows/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/windows/platform.c') diff --git a/src/windows/platform.c b/src/windows/platform.c index 24fd6f6..4b9ae61 100644 --- a/src/windows/platform.c +++ b/src/windows/platform.c @@ -285,7 +285,7 @@ void platform_create_config_directory() char tmp[PATH_MAX]; if(SUCCEEDED(SHGetFolderPathA(0, CSIDL_LOCAL_APPDATA|CSIDL_FLAG_CREATE, NULL, 0, tmp))) { - string_appendn(tmp, "/moedit", PATH_MAX); + string_appendn(tmp, CONFIG_DIRECTORY, PATH_MAX); } @@ -299,7 +299,7 @@ char* get_config_save_location(char *buffer) { if(SUCCEEDED(SHGetFolderPathA(0, CSIDL_LOCAL_APPDATA|CSIDL_FLAG_CREATE, NULL, 0, buffer))) { - string_appendn(buffer, "\\moedit\\config.txt", MAX_INPUT_LENGTH); + string_appendn(buffer, CONFIG_DIRECTORY"\\config.txt", MAX_INPUT_LENGTH); return buffer; } -- cgit v1.2.3-70-g09d2