mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
@@ -20,7 +20,7 @@ bool compress_string(const std::string& str, std::string *dest, int compressionl
|
||||
memset(&zs, 0, sizeof(zs));
|
||||
|
||||
if (deflateInit(&zs, compressionlevel) != Z_OK) {
|
||||
ERROR_LOG(IO, "deflateInit failed while compressing.");
|
||||
ERROR_LOG(Log::IO, "deflateInit failed while compressing.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ bool decompress_string(const std::string& str, std::string *dest) {
|
||||
|
||||
// modification by hrydgard: inflateInit2, 16+MAXWBITS makes it read gzip data too
|
||||
if (inflateInit2(&zs, 32+MAX_WBITS) != Z_OK) {
|
||||
ERROR_LOG(IO, "inflateInit failed while decompressing.");
|
||||
ERROR_LOG(Log::IO, "inflateInit failed while decompressing.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ bool decompress_string(const std::string& str, std::string *dest) {
|
||||
inflateEnd(&zs);
|
||||
|
||||
if (ret != Z_STREAM_END) { // an error occurred that was not EOF
|
||||
ERROR_LOG(IO, "Exception during zlib decompression: (%i) %s", ret, zs.msg);
|
||||
ERROR_LOG(Log::IO, "Exception during zlib decompression: (%i) %s", ret, zs.msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user