diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-26 22:53:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 22:53:42 -0400 |
commit | 4f120a9ec0ce7a20d7bb0dc60342c42a60ed8c43 (patch) | |
tree | 588b3f4d379ae16461cb0a24d800f7cbc330d577 /src/yuzu/main.cpp | |
parent | 18f8012233cda88aacf01c59f89abf3a687ab2c9 (diff) | |
parent | 3062eb52f4b43c4ee861bd944291f1f9aba198df (diff) |
Merge pull request #406 from lioncash/frontend
frontends: Move logging macros over to new fmt-capable ones
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 20796e92c..a5d7807e2 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -359,19 +359,17 @@ bool GMainWindow::LoadROM(const QString& filename) { if (result != Core::System::ResultStatus::Success) { switch (result) { case Core::System::ResultStatus::ErrorGetLoader: - LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", - filename.toStdString().c_str()); + NGLOG_CRITICAL(Frontend, "Failed to obtain loader for {}!", filename.toStdString()); QMessageBox::critical(this, tr("Error while loading ROM!"), tr("The ROM format is not supported.")); break; case Core::System::ResultStatus::ErrorUnsupportedArch: - LOG_CRITICAL(Frontend, "Unsupported architecture detected!", - filename.toStdString().c_str()); + NGLOG_CRITICAL(Frontend, "Unsupported architecture detected!", filename.toStdString()); QMessageBox::critical(this, tr("Error while loading ROM!"), tr("The ROM uses currently unusable 32-bit architecture")); break; case Core::System::ResultStatus::ErrorSystemMode: - LOG_CRITICAL(Frontend, "Failed to load ROM!"); + NGLOG_CRITICAL(Frontend, "Failed to load ROM!"); QMessageBox::critical(this, tr("Error while loading ROM!"), tr("Could not determine the system mode.")); break; @@ -859,7 +857,7 @@ void GMainWindow::UpdateUITheme() { QString theme_uri(":" + UISettings::values.theme + "/style.qss"); QFile f(theme_uri); if (!f.exists()) { - LOG_ERROR(Frontend, "Unable to set style, stylesheet file not found"); + NGLOG_ERROR(Frontend, "Unable to set style, stylesheet file not found"); } else { f.open(QFile::ReadOnly | QFile::Text); QTextStream ts(&f); |