From 053e8288abb1d734b42c404e8a3f01fb9b6ac653 Mon Sep 17 00:00:00 2001 From: liduo Date: Wed, 10 Jul 2024 14:30:20 +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 fdaae88..ed77124 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.009" }; +static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.010" }; const static int32_t TAG_LEN = 4; static std::set g_resourceSet; diff --git a/src/config_parser.cpp b/src/config_parser.cpp index d306621..8fce877 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 = {