From ebd06a3efb70202364926755441c394ecaa00db8 Mon Sep 17 00:00:00 2001 From: HanSY Date: Wed, 11 Jun 2025 15:16:12 +0800 Subject: [PATCH] =?UTF-8?q?restool=E6=96=B0=E9=9C=80=E6=B1=82=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: HanSY --- include/resource_data.h | 2 +- src/config_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/resource_data.h b/include/resource_data.h index b96e0d7..1be5482 100644 --- a/include/resource_data.h +++ b/include/resource_data.h @@ -49,7 +49,7 @@ const static std::string SOLUTIONS_ARROW = "> "; const static std::string LONG_PATH_HEAD = "\\\\?\\"; const static int32_t VERSION_MAX_LEN = 128; const static int32_t INT_TO_BYTES = sizeof(uint32_t); -static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.1.0.008" }; +static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 6.0.0.001" }; const static int32_t TAG_LEN = 4; constexpr static int DEFAULT_POOL_SIZE = 8; static std::set g_resourceSet; diff --git a/src/config_parser.cpp b/src/config_parser.cpp index 5e0a8ce..5e712a3 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -86,7 +86,7 @@ uint32_t ConfigParser::Init() cJSON *appNode = cJSON_GetObjectItem(root_, "app"); if (appNode && cJSON_IsObject(appNode)) { cJSON *minAPIVersionNode = cJSON_GetObjectItem(appNode, "minAPIVersion"); - if (minAPIVersionNode && minAPIVersionNode->valueint > MIN_SUPPORT_NEW_MODULE_API_VERSION) { + if (minAPIVersionNode && minAPIVersionNode->valueint >= MIN_SUPPORT_NEW_MODULE_API_VERSION) { newModule_ = true; } }