mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 17:19:54 -06:00
Introduce Platform::Log
(#1640)
* Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
This commit is contained in:

committed by
GitHub

parent
19280cff2d
commit
79dfb8dc8f
@ -19,6 +19,9 @@
|
||||
#include "ArchiveUtil.h"
|
||||
#include "Platform.h"
|
||||
|
||||
using Platform::Log;
|
||||
using Platform::LogLevel;
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
|
||||
@ -106,7 +109,7 @@ QVector<QString> ExtractFileFromArchive(QString path, QString wantedFile, QByteA
|
||||
|
||||
if (bytesRead < 0)
|
||||
{
|
||||
printf("Error whilst reading archive: %s", archive_error_string(a));
|
||||
Log(LogLevel::Error, "Error whilst reading archive: %s", archive_error_string(a));
|
||||
return QVector<QString> {"Err", archive_error_string(a)};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user