mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
修改增量编译时rawfile文件的覆盖逻辑
Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user