From 7bae10bf7435f81d4a27b54c596c98ebaccdda35 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Wed, 31 May 2023 03:39:08 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A2=9E=E9=87=8F=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=97=B6rawfile=E6=96=87=E4=BB=B6=E7=9A=84=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- src/resource_append.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resource_append.cpp b/src/resource_append.cpp index d99ade6..8aa32a5 100644 --- a/src/resource_append.cpp +++ b/src/resource_append.cpp @@ -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; }