mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 17:24:42 -04:00
@@ -39,7 +39,7 @@ const static std::string NEW_LINE_PATH = "\nat ";
|
||||
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.004" };
|
||||
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.005" };
|
||||
const static int32_t TAG_LEN = 4;
|
||||
|
||||
enum class KeyType {
|
||||
|
||||
@@ -259,8 +259,8 @@ bool ConfigParser::ParseAbilities(const cJSON *abilities)
|
||||
|
||||
bool ConfigParser::ParseAbilitiy(const cJSON *ability, bool &isMainAbility)
|
||||
{
|
||||
if (!ability || !cJSON_IsArray(ability)) {
|
||||
cerr << "Error: ability not array." << NEW_LINE_PATH << filePath_ << endl;
|
||||
if (!ability || !cJSON_IsObject(ability)) {
|
||||
cerr << "Error: ability not object." << NEW_LINE_PATH << filePath_ << endl;
|
||||
return false;
|
||||
}
|
||||
if (cJSON_GetArraySize(ability) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user