mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -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
@ -30,6 +30,8 @@
|
||||
#include "ui_TitleManagerDialog.h"
|
||||
#include "ui_TitleImportDialog.h"
|
||||
|
||||
using Platform::Log;
|
||||
using Platform::LogLevel;
|
||||
|
||||
bool TitleManagerDialog::NANDInited = false;
|
||||
TitleManagerDialog* TitleManagerDialog::currentDlg = nullptr;
|
||||
@ -262,7 +264,7 @@ void TitleManagerDialog::onImportTitleData()
|
||||
QListWidgetItem* cur = ui->lstTitleList->currentItem();
|
||||
if (!cur)
|
||||
{
|
||||
printf("what??\n");
|
||||
Log(LogLevel::Error, "what??\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -283,7 +285,7 @@ void TitleManagerDialog::onImportTitleData()
|
||||
wantedsize = cur->data(Qt::UserRole+3).toUInt();
|
||||
break;
|
||||
default:
|
||||
printf("what??\n");
|
||||
Log(LogLevel::Warn, "what??\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -332,7 +334,7 @@ void TitleManagerDialog::onExportTitleData()
|
||||
QListWidgetItem* cur = ui->lstTitleList->currentItem();
|
||||
if (!cur)
|
||||
{
|
||||
printf("what??\n");
|
||||
Log(LogLevel::Error, "what??\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -357,7 +359,7 @@ void TitleManagerDialog::onExportTitleData()
|
||||
wantedsize = cur->data(Qt::UserRole+3).toUInt();
|
||||
break;
|
||||
default:
|
||||
printf("what??\n");
|
||||
Log(LogLevel::Warn, "what??\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user