修复资源固定bug

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2024-04-01 14:22:15 +08:00
parent 93a3e7163a
commit 8d007cb801
+2 -1
View File
@@ -60,8 +60,9 @@ uint32_t IdDefinedParser::Init()
if (isSys) {
return RESTOOL_SUCCESS;
}
if (!idDefinedInput.empty()) {
if (!idDefinedInput.empty() && ResourceUtil::FileExist(idDefinedInput)) {
appDefinedIds_.clear();
idDefineds_.clear();
string idDefinedPath = FileEntry::FilePath(idDefinedInput).GetPath();
if (Init(idDefinedPath, false) != RESTOOL_SUCCESS) {
return RESTOOL_ERROR;