summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-04 10:32:16 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-04 10:32:16 +0100
commit3cb8d5ce252c246e2218a05968dc10db38116994 (patch)
tree46e0f1addafd7a6f484f0c14710a11e2e3b2926a /src/windows
parent3f4f5aeb94f5675def64c386775bc7776fa9cc1c (diff)
config localtion
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/platform.c4
1 files changed, 2 insertions, 2 deletions
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;
}