support orientation config with reference

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2024-12-09 09:32:39 +08:00
parent 3a3dd2d056
commit 7c4e3c5e8e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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<std::string> g_resourceSet;
const static int8_t INVALID_ID = -1;
+2 -1
View File
@@ -40,7 +40,8 @@ const map<string, string> ConfigParser::JSON_STRING_IDS = {
{ "startWindowBackground", "^\\$color:"},
{ "resource", "^\\$[a-z]+:" },
{ "extra", "^\\$[a-z]+:" },
{ "fileContextMenu", "^\\$profile:" }
{ "fileContextMenu", "^\\$profile:" },
{ "orientation", "^\\$string:" }
};
const map<string, string> ConfigParser::JSON_ARRAY_IDS = {