diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-30 19:33:01 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-30 19:33:01 +0100 |
| commit | 86f0b66beed7305c7cf9c08ec6e37ec1041c4ede (patch) | |
| tree | 50224b22f8bf1f6f2fb17f9753363ea2c86721df | |
| parent | 95e06b2f6d87b597a52029dbfa9896f4bd8ca74b (diff) | |
fix crash in release 2.3v2
| -rw-r--r-- | src/config.cpp | 4 | ||||
| -rw-r--r-- | src/config.h | 4 | ||||
| -rw-r--r-- | src/main.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/config.cpp b/src/config.cpp index 51d45a8..38f7d8c 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -10,8 +10,8 @@ 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]; -uint16_t ts_thread_count = 4; -uint32_t max_file_size = 100; // in MBs +int32_t ts_thread_count = 4; +int32_t max_file_size = 100; // in MBs bool respect_capitalization = false; static void _ts_config_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const utf8_int8_t* line) diff --git a/src/config.h b/src/config.h index 73d70ff..20fdba0 100644 --- a/src/config.h +++ b/src/config.h @@ -28,8 +28,8 @@ extern utf8_int8_t save_path[MAX_INPUT_LENGTH]; 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 uint16_t ts_thread_count; -extern uint32_t max_file_size; // in MBs +extern int32_t ts_thread_count; +extern int32_t max_file_size; // in MBs extern bool respect_capitalization; void ts_load_config();
\ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index a6e8dba..04cdfaf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,10 +56,10 @@ static void _ts_create_popups(int window_w, int window_h) { // Settings window if (ImGui::BeginPopupModal("Text-Search settings", &open_settings_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({300, 0}); - ImGui::DragInt("Threads", (int*)&ts_thread_count, 0.1f, 1, 8); + ImGui::DragInt("Threads", &ts_thread_count, 0.1f, 1, 8); ImGui::SetItemTooltip("Number of threads used to search for text matches"); - ImGui::DragInt("File Size", (int*)&max_file_size, 50.0f, 1, 10000, "%dMB"); + ImGui::DragInt("File Size", &max_file_size, 50.0f, 1, 10000, "%dMB"); ImGui::SetItemTooltip("Files larger than this will not be searched"); ImGui::Dummy({0, 70}); |
