diff options
Diffstat (limited to 'ZAPD/ZTexture.cpp')
| -rw-r--r-- | ZAPD/ZTexture.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ZAPD/ZTexture.cpp b/ZAPD/ZTexture.cpp index 58e0eed..10533f5 100644 --- a/ZAPD/ZTexture.cpp +++ b/ZAPD/ZTexture.cpp @@ -780,10 +780,10 @@ void ZTexture::Save(const std::string& outFolder) std::string outPath = outFolder; // POOL CHECK - if (Globals::Instance->cfg->texturePool.find(hash) != Globals::Instance->cfg->texturePool.end()) + if (Globals::Instance->cfg.texturePool.find(hash) != Globals::Instance->cfg.texturePool.end()) { - outPath = Path::GetDirectoryName(Globals::Instance->cfg->texturePool[hash]); - outName = Path::GetFileNameWithoutExtension(Globals::Instance->cfg->texturePool[hash]); + outPath = Path::GetDirectoryName(Globals::Instance->cfg.texturePool[hash]); + outName = Path::GetFileNameWithoutExtension(Globals::Instance->cfg.texturePool[hash]); } if (!Directory::Exists(outPath)) @@ -842,6 +842,11 @@ string ZTexture::GetSourceOutputCode(const std::string& prefix) sourceOutput += StringHelper::Sprintf(" // 0x%06X \n", rawDataIndex + ((i / 32) * 32)); } + // Ensure there's always a trailing line feed to prevent dumb warnings. + // Please don't remove this line, unless you somehow made a way to prevent + // that warning when building the OoT repo. + sourceOutput += "\n"; + return sourceOutput; } |
