summaryrefslogtreecommitdiff
path: root/ZAPD/ZBlob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZBlob.cpp')
-rw-r--r--ZAPD/ZBlob.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ZAPD/ZBlob.cpp b/ZAPD/ZBlob.cpp
index 3839f83..40c534e 100644
--- a/ZAPD/ZBlob.cpp
+++ b/ZAPD/ZBlob.cpp
@@ -40,17 +40,21 @@ Declaration* ZBlob::DeclareVar(const std::string& prefix,
[[maybe_unused]] const std::string& bodyStr)
{
std::string auxName = name;
+ std::string auxOutName = outName;
- if (name == "")
+ if (auxName == "")
auxName = GetDefaultName(prefix);
- std::string path = Path::GetFileNameWithoutExtension(auxName);
+ if (auxOutName == "")
+ auxOutName = GetDefaultName(prefix);
+
+ std::string path = Path::GetFileNameWithoutExtension(auxOutName);
std::string assetOutDir =
(Globals::Instance->outputPath / Path::GetFileNameWithoutExtension(GetOutName())).string();
std::string incStr =
- StringHelper::Sprintf("%s.%s.inc", assetOutDir.c_str(), GetExternalExtension().c_str());
+ StringHelper::Sprintf("%s.%s.inc.c", assetOutDir.c_str(), GetExternalExtension().c_str());
return parent->AddDeclarationIncludeArray(rawDataIndex, incStr, GetRawDataSize(),
GetSourceTypeName(), auxName, 0);