aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native/TexturePacker/src/DecoderManager.cpp
diff options
context:
space:
mode:
authorArne Morten Kvarving <spiff@kodi.tv>2022-04-12 22:26:03 +0200
committerArne Morten Kvarving <spiff@kodi.tv>2022-04-13 10:13:47 +0200
commitb644ce7d45dcb69d38ab1435feaa79e4139c56bc (patch)
tree2d4cd7abbf40752183bc853dc2b178cfb82c17be /tools/depends/native/TexturePacker/src/DecoderManager.cpp
parent9930b2522e6378675a5134edbe2698f3969a138a (diff)
changed: add a verbose flag for texturepacker
and suppress the 'This is a XXX' message if not enabled
Diffstat (limited to 'tools/depends/native/TexturePacker/src/DecoderManager.cpp')
-rw-r--r--tools/depends/native/TexturePacker/src/DecoderManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/depends/native/TexturePacker/src/DecoderManager.cpp b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
index 3daf430286..8f6a9041bb 100644
--- a/tools/depends/native/TexturePacker/src/DecoderManager.cpp
+++ b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
@@ -20,6 +20,7 @@
#include <cstdio>
#include "DecoderManager.h"
+bool DecoderManager::verbose;
std::vector<IDecoder *> DecoderManager::m_decoders;
// ADD new decoders here
@@ -72,7 +73,9 @@ bool DecoderManager::LoadFile(const std::string &filename, DecodedFrames &frames
{
if (m_decoders[i]->CanDecode(filename))
{
- fprintf(stdout, "This is a %s - lets load it via %s...\n", m_decoders[i]->GetImageFormatName(), m_decoders[i]->GetDecoderName());
+ if (verbose)
+ fprintf(stdout, "This is a %s - lets load it via %s...\n",
+ m_decoders[i]->GetImageFormatName(), m_decoders[i]->GetDecoderName());
return m_decoders[i]->LoadFile(filename, frames);
}
}