Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into v2
  • Loading branch information
aldrik-ramaekers committed Mar 10, 2024
2 parents e039ec4 + d3d0ddf commit 8624092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/unix/main_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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);
}
Expand Down

0 comments on commit 8624092

Please sign in to comment.