diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-05 20:05:46 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-05 20:05:46 +0100 |
| commit | 129d8d9a5922eb3d4df9320418fb98dfbbadc053 (patch) | |
| tree | 47422dcb5536ebc0c0ba62907aab9c2daa9c10f8 /src/config.h | |
| parent | f3401ce1532938fec63d22095ca8b14affcfdce3 (diff) | |
save previous search query to config and load on startup
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..8e610f5 --- /dev/null +++ b/src/config.h @@ -0,0 +1,17 @@ +#pragma once + +#define MAX_INPUT_LENGTH 4096 +#define MAX_ERROR_MESSAGE_LENGTH (MAX_INPUT_LENGTH) +#define FILE_RESERVE_COUNT 1000 +#define ERROR_RESERVE_COUNT 100 + +#include "../imgui/imgui.h" +#include "../utf8.h" + +extern utf8_int8_t path_buffer[MAX_INPUT_LENGTH]; +extern utf8_int8_t filter_buffer[MAX_INPUT_LENGTH]; +extern utf8_int8_t query_buffer[MAX_INPUT_LENGTH]; +extern int ts_thread_count; +extern int max_file_size; // in MBs + +void ts_load_config();
\ No newline at end of file |
