diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-14 17:16:22 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-14 17:16:22 +0100 |
| commit | 28b00896a8cb94663a3d35313ee7d771d4af11e0 (patch) | |
| tree | 47ac8ff198b5ad9264263914b647ef5da620eefc /src/config.cpp | |
| parent | b7d17bdf8c0f1a4118709fbc5162463afb48b5c8 (diff) | |
use cstdint types
Diffstat (limited to 'src/config.cpp')
| -rw-r--r-- | src/config.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/config.cpp b/src/config.cpp index 04ad58e..ef3f4be 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -10,17 +10,17 @@ utf8_int8_t save_path[MAX_INPUT_LENGTH]; utf8_int8_t path_buffer[MAX_INPUT_LENGTH]; utf8_int8_t filter_buffer[MAX_INPUT_LENGTH]; utf8_int8_t query_buffer[MAX_INPUT_LENGTH]; -int ts_thread_count = 4; -int max_file_size = 100; // in MBs +uint16_t ts_thread_count = 4; +uint32_t max_file_size = 100; // in MBs bool respect_capitalization = false; -static void _ts_config_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +static void _ts_config_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const utf8_int8_t* line) { - uint8_t path[MAX_INPUT_LENGTH]; - uint8_t filter[MAX_INPUT_LENGTH]; - uint8_t query[MAX_INPUT_LENGTH]; + utf8_int8_t path[MAX_INPUT_LENGTH]; + utf8_int8_t filter[MAX_INPUT_LENGTH]; + utf8_int8_t query[MAX_INPUT_LENGTH]; - int threads = 1, maxSize = 100, matchCase = 0; + uint32_t threads = 1, maxSize = 100, matchCase = 0; #if defined(_WIN32) if (sscanf_s(line, "Path=%s", (char*)&path, MAX_INPUT_LENGTH) == 1) { strncpy_s(path_buffer, MAX_INPUT_LENGTH, (char*)path, MAX_INPUT_LENGTH); } |
