From 129d8d9a5922eb3d4df9320418fb98dfbbadc053 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 5 Mar 2024 20:05:46 +0100 Subject: save previous search query to config and load on startup --- src/config.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/config.h (limited to 'src/config.h') 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 -- cgit v1.2.3-70-g09d2