修改增量编译时rawfile文件的覆盖逻辑

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2023-05-31 03:39:08 +00:00
parent 4ebfb8638b
commit 7bae10bf74
+3
View File
@@ -536,6 +536,9 @@ bool ResourceAppend::LoadResourceItemFromMem(const char buffer[], int32_t length
string data = ParseString(buffer, length, offset);
if (resType == ResType::RAW) {
FileEntry::FilePath outPath(packageParser_.GetOutput());
if (ResourceUtil::FileExist(outPath.Append(data).GetPath())) {
continue;
}
if (!ResourceUtil::CreateDirs(outPath.Append(data).GetParent().GetPath())) {
return false;
}