std::cout => Log(Debug::Verbose)

macos_ci
florent.teppe 2 years ago
parent ad8cfde4e0
commit 12304d36aa

@ -34,6 +34,8 @@
#include <iostream> // FIXME: debug only #include <iostream> // FIXME: debug only
#include <components/debug/debuglog.hpp>
#include "reader.hpp" #include "reader.hpp"
// #include "writer.hpp" // #include "writer.hpp"
@ -122,7 +124,7 @@ void ESM4::Land::load(ESM4::Reader& reader)
if (currentAddQuad != -1) if (currentAddQuad != -1)
{ {
// FIXME: sometimes there are no VTXT following an ATXT? Just add a dummy one for now // FIXME: sometimes there are no VTXT following an ATXT? Just add a dummy one for now
std::cout << "ESM4::Land VTXT empty layer " << (int)layer.texture.layerIndex << std::endl; Log(Debug::Verbose) << "ESM4::Land VTXT empty layer " << (int)layer.texture.layerIndex;
mTextures[currentAddQuad].layers.push_back(layer); mTextures[currentAddQuad].layers.push_back(layer);
} }
reader.get(layer.texture); reader.get(layer.texture);
@ -208,8 +210,8 @@ void ESM4::Land::load(ESM4::Reader& reader)
if (currentAddQuad != -1) if (currentAddQuad != -1)
{ {
// FIXME: not sure if it happens here as well // FIXME: not sure if it happens here as well
std::cout << "ESM4::Land VTXT empty layer " << (int)layer.texture.layerIndex << " quad " Log(Debug::Verbose) << "ESM4::Land VTXT empty layer " << (int)layer.texture.layerIndex << " quad "
<< (int)layer.texture.quadrant << std::endl; << (int)layer.texture.quadrant;
mTextures[currentAddQuad].layers.push_back(layer); mTextures[currentAddQuad].layers.push_back(layer);
} }

Loading…
Cancel
Save