mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Clean up among the logs. Remove MASTER_LOG.
This commit is contained in:
1 parent
cfe2621604
commit
440e72d250
36 files changed
+181
-179
No files matched your search
@@ -269,18 +269,18 @@ void TextureReplacer::PopulateReplacement(ReplacedTexture *result, u64 cachekey,
|
||||
static bool WriteTextureToPNG(png_imagep image, const std::string &filename, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) {
|
||||
FILE *fp = File::OpenCFile(filename, "wb");
|
||||
if (!fp) {
|
||||
ERROR_LOG(COMMON, "Unable to open texture file for writing.");
|
||||
ERROR_LOG(SYSTEM, "Unable to open texture file for writing.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (png_image_write_to_stdio(image, fp, convert_to_8bit, buffer, row_stride, colormap)) {
|
||||
if (fclose(fp) != 0) {
|
||||
ERROR_LOG(COMMON, "Texture file write failed.");
|
||||
ERROR_LOG(SYSTEM, "Texture file write failed.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
ERROR_LOG(COMMON, "Texture PNG encode failed.");
|
||||
ERROR_LOG(SYSTEM, "Texture PNG encode failed.");
|
||||
fclose(fp);
|
||||
remove(filename.c_str());
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user