Fixing logger and windows version - remove terminal
This commit is contained in:
1 parent
76287dda46
commit
a7d17d9afd
27 files changed
+349
-243
No files matched your search
@@ -62,7 +62,7 @@ namespace ZL
|
||||
}
|
||||
}
|
||||
}
|
||||
std::cout << "TextureManager: resized texture from "
|
||||
logger() << "TextureManager: resized texture from "
|
||||
<< src.width << "x" << src.height
|
||||
<< " to " << newW << "x" << newH << " (POT)" << std::endl;
|
||||
return dst;
|
||||
@@ -353,13 +353,13 @@ namespace ZL
|
||||
}
|
||||
|
||||
void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg) {
|
||||
std::cout << "PNG Warning: " << warning_msg << std::endl;
|
||||
logger() << "PNG Warning: " << warning_msg << std::endl;
|
||||
}
|
||||
|
||||
|
||||
void user_error_fn(png_structp png_ptr, png_const_charp error_msg) {
|
||||
|
||||
std::cout << "PNG Error: " << error_msg << std::endl;
|
||||
logger() << "PNG Error: " << error_msg << std::endl;
|
||||
longjmp(png_jmpbuf(png_ptr), 1);
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ namespace ZL
|
||||
fileArr = !ZIPFileName.empty() ? readFileFromZIP(fullFileName, ZIPFileName) : readFile(fullFileName);
|
||||
|
||||
if (fileArr.empty()) {
|
||||
std::cout << "Could not read file data into memory: " << fullFileName << " zip file name: " << ZIPFileName << std::endl;
|
||||
logger() << "Could not read file data into memory: " << fullFileName << " zip file name: " << ZIPFileName << std::endl;
|
||||
throw std::runtime_error("Could not read file data into memory");
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ namespace ZL
|
||||
{
|
||||
for (auto it = textureMap.begin(); it != textureMap.end(); ) {
|
||||
if (it->first.substr(0, prefix.size()) == prefix) {
|
||||
std::cout << "Unloading texture with prefix: " << it->first << std::endl;
|
||||
logger() << "Unloading texture with prefix: " << it->first << std::endl;
|
||||
it = textureMap.erase(it);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user