diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 12:35:27 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 12:35:27 +0100 |
| commit | d3d0ddfc9e21bf7afe3611c5401f3b6cca70d34f (patch) | |
| tree | ec62ed941a708a50ec091e0a7a9e52426cb7cd82 /src/unix | |
| parent | 7cc519c9d2f5b68aae04d368077f17c605009b43 (diff) | |
building on linux
Diffstat (limited to 'src/unix')
| -rw-r--r-- | src/unix/main_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/main_unix.cpp b/src/unix/main_unix.cpp index 8fdbc1b..86c38cd 100644 --- a/src/unix/main_unix.cpp +++ b/src/unix/main_unix.cpp @@ -29,6 +29,7 @@ bool program_running = true; char config_path[MAX_INPUT_LENGTH]; static const char* _ts_platform_get_config_file_path(char* buffer) { + // TODO: this can be easily merged. #ifdef __APPLE__ char* env = getenv("HOME"); char path_buf[MAX_INPUT_LENGTH]; @@ -45,7 +46,6 @@ static const char* _ts_platform_get_config_file_path(char* buffer) { char path_buf[MAX_INPUT_LENGTH]; snprintf(path_buf, MAX_INPUT_LENGTH, "%s%s", env, "/text-search/"); snprintf(buffer, MAX_INPUT_LENGTH, "%.*s%s", MAX_INPUT_LENGTH-10, path_buf, "imgui.ini"); - printf(); if (!ts_platform_dir_exists(path_buf)) { mkdir(path_buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); } |
