From 7c4e3c5e8eabd70b540ae03e714d964289afe2b4 Mon Sep 17 00:00:00 2001 From: liduo Date: Mon, 9 Dec 2024 09:32:39 +0800 Subject: [PATCH] support orientation config with reference Signed-off-by: liduo --- include/resource_data.h | 2 +- src/config_parser.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/resource_data.h b/include/resource_data.h index 7176c70..a11a65a 100644 --- a/include/resource_data.h +++ b/include/resource_data.h @@ -48,7 +48,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.0.1.010" }; +static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.0.1.011" }; const static int32_t TAG_LEN = 4; static std::set g_resourceSet; const static int8_t INVALID_ID = -1; diff --git a/src/config_parser.cpp b/src/config_parser.cpp index 4486919..1d2f8aa 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -40,7 +40,8 @@ const map ConfigParser::JSON_STRING_IDS = { { "startWindowBackground", "^\\$color:"}, { "resource", "^\\$[a-z]+:" }, { "extra", "^\\$[a-z]+:" }, - { "fileContextMenu", "^\\$profile:" } + { "fileContextMenu", "^\\$profile:" }, + { "orientation", "^\\$string:" } }; const map ConfigParser::JSON_ARRAY_IDS = {