diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:04:20 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:04:20 +0100 |
| commit | 86240920e4fd8c208ffb0d4b6c599e91e0d79961 (patch) | |
| tree | a386bc2f09705964de124b039392601255ab1b00 | |
| parent | e039ec4d059d49c6fafecbc9aec7536498baa8ec (diff) | |
| parent | d3d0ddfc9e21bf7afe3611c5401f3b6cca70d34f (diff) | |
Merge branch 'v2' of https://github.com/aldrik-ramaekers/text-search into v2
| -rw-r--r-- | build_linux.sh | 2 | ||||
| -rw-r--r-- | src/unix/main_unix.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build_linux.sh b/build_linux.sh index e3e30df..c63ebc4 100644 --- a/build_linux.sh +++ b/build_linux.sh @@ -9,7 +9,7 @@ if [[ $* == *-release* ]]; then fi mkdir -p $OUT_DIR -g++ -m64 -std=c++17 $FLAGS -DUNICODE -o $OUT_DIR/text-search imgui/imgui*.cpp imgui/backends/imgui_impl_glfw.cpp src/widgets/*.cpp src/*.cpp imfiledialog/*.cpp src/linux/*.cpp -Iimgui -Iimgui/backends -Isrc -Isrc/linux -pthread -ldl -lglfw -lGLU -lGL +g++ -m64 -std=c++17 $FLAGS -DUNICODE -o $OUT_DIR/text-search imgui/imgui*.cpp imgui/backends/imgui_impl_glfw.cpp src/widgets/*.cpp src/*.cpp imfiledialog/*.cpp src/unix/*.cpp -Iimgui -Iimgui/backends -Isrc -Isrc/unix -pthread -ldl -lglfw -lGLU -lGL if [[ $* == *-r* ]]; then ./$OUT_DIR/text-search 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); } |
