From d3d0ddfc9e21bf7afe3611c5401f3b6cca70d34f Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 10 Mar 2024 12:35:27 +0100 Subject: building on linux --- src/unix/main_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unix') 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); } -- cgit v1.2.3-70-g09d2