diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 12:32:01 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 12:32:01 +0100 |
| commit | 7cc519c9d2f5b68aae04d368077f17c605009b43 (patch) | |
| tree | 3d02133184e0ff2b5277cca46c2b61ed3b648c81 /src/config.cpp | |
| parent | 22f40608ec8ba81577625bb65043cacbc51710eb (diff) | |
fix config loading on osx, merge /linux and /osx
Diffstat (limited to 'src/config.cpp')
| -rw-r--r-- | src/config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp index 5a2e0e0..1dd0284 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -28,7 +28,7 @@ static void _ts_config_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entr else if (sscanf_s(line, "Threads=%d", &threads) == 1) { ts_thread_count = threads; } else if (sscanf_s(line, "MaxSize=%d", &maxSize) == 1) { max_file_size = maxSize; } else if (sscanf_s(line, "MatchCase=%d", &matchCase) == 1) { respect_capitalization = matchCase; } -#elif defined(__linux__) +#elif defined(__linux__) || defined(__APPLE__) if (sscanf(line, "Path=%s", (char*)&path) == 1) { strncpy(path_buffer, (char*)path, MAX_INPUT_LENGTH); } else if (sscanf(line, "Filter=%s", (char*)&filter) == 1) { strncpy(filter_buffer, (char*)filter, MAX_INPUT_LENGTH); } else if (sscanf(line, "Query=%s", (char*)&query) == 1) { strncpy(query_buffer, (char*)query, MAX_INPUT_LENGTH); } |
