log: replace all NGLOG with LOG
This commit is contained in:
parent
fde415968e
commit
7c5a76e58b
152 changed files with 1541 additions and 1541 deletions
|
@ -137,7 +137,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
|
|||
ConnectWidgetEvents();
|
||||
|
||||
SetupUIStrings();
|
||||
NGLOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname,
|
||||
LOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname,
|
||||
Common::g_scm_branch, Common::g_scm_desc);
|
||||
|
||||
show();
|
||||
|
@ -528,20 +528,20 @@ void GMainWindow::OnCheckForUpdates() {
|
|||
|
||||
void GMainWindow::CheckForUpdates() {
|
||||
if (updater->CheckForUpdates()) {
|
||||
NGLOG_INFO(Frontend, "Update check started");
|
||||
LOG_INFO(Frontend, "Update check started");
|
||||
} else {
|
||||
NGLOG_WARNING(Frontend, "Unable to start check for updates");
|
||||
LOG_WARNING(Frontend, "Unable to start check for updates");
|
||||
}
|
||||
}
|
||||
|
||||
void GMainWindow::OnUpdateFound(bool found, bool error) {
|
||||
if (error) {
|
||||
NGLOG_WARNING(Frontend, "Update check failed");
|
||||
LOG_WARNING(Frontend, "Update check failed");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
NGLOG_INFO(Frontend, "No updates found");
|
||||
LOG_INFO(Frontend, "No updates found");
|
||||
|
||||
// If the user explicitly clicked the "Check for Updates" button, we are
|
||||
// going to want to show them a prompt anyway.
|
||||
|
@ -553,12 +553,12 @@ void GMainWindow::OnUpdateFound(bool found, bool error) {
|
|||
}
|
||||
|
||||
if (emulation_running && !explicit_update_check) {
|
||||
NGLOG_INFO(Frontend, "Update found, deferring as game is running");
|
||||
LOG_INFO(Frontend, "Update found, deferring as game is running");
|
||||
defer_update_prompt = true;
|
||||
return;
|
||||
}
|
||||
|
||||
NGLOG_INFO(Frontend, "Update found!");
|
||||
LOG_INFO(Frontend, "Update found!");
|
||||
explicit_update_check = false;
|
||||
|
||||
ShowUpdatePrompt();
|
||||
|
@ -610,13 +610,13 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
|||
if (result != Core::System::ResultStatus::Success) {
|
||||
switch (result) {
|
||||
case Core::System::ResultStatus::ErrorGetLoader:
|
||||
NGLOG_CRITICAL(Frontend, "Failed to obtain loader for {}!", filename.toStdString());
|
||||
LOG_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::ErrorSystemMode:
|
||||
NGLOG_CRITICAL(Frontend, "Failed to load ROM!");
|
||||
LOG_CRITICAL(Frontend, "Failed to load ROM!");
|
||||
QMessageBox::critical(this, tr("Error while loading ROM!"),
|
||||
tr("Could not determine the system mode."));
|
||||
break;
|
||||
|
@ -672,7 +672,7 @@ bool GMainWindow::LoadROM(const QString& filename) {
|
|||
}
|
||||
|
||||
void GMainWindow::BootGame(const QString& filename) {
|
||||
NGLOG_INFO(Frontend, "Citra starting...");
|
||||
LOG_INFO(Frontend, "Citra starting...");
|
||||
StoreRecentFile(filename); // Put the filename on top of the list
|
||||
|
||||
if (!LoadROM(filename))
|
||||
|
@ -825,7 +825,7 @@ void GMainWindow::OnGameListOpenFolder(u64 program_id, GameListOpenTarget target
|
|||
"content/";
|
||||
break;
|
||||
default:
|
||||
NGLOG_ERROR(Frontend, "Unexpected target {}", static_cast<int>(target));
|
||||
LOG_ERROR(Frontend, "Unexpected target {}", static_cast<int>(target));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -839,7 +839,7 @@ void GMainWindow::OnGameListOpenFolder(u64 program_id, GameListOpenTarget target
|
|||
return;
|
||||
}
|
||||
|
||||
NGLOG_INFO(Frontend, "Opening {} path for program_id={:016x}", open_target, program_id);
|
||||
LOG_INFO(Frontend, "Opening {} path for program_id={:016x}", open_target, program_id);
|
||||
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(qpath));
|
||||
}
|
||||
|
@ -894,7 +894,7 @@ void GMainWindow::OnGameListAddDirectory() {
|
|||
UISettings::values.game_dirs.append(game_dir);
|
||||
game_list->PopulateAsync(UISettings::values.game_dirs);
|
||||
} else {
|
||||
NGLOG_WARNING(Frontend, "Selected directory is already in the game list");
|
||||
LOG_WARNING(Frontend, "Selected directory is already in the game list");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1362,7 +1362,7 @@ void GMainWindow::UpdateUITheme() {
|
|||
QString theme_uri(":" + UISettings::values.theme + "/style.qss");
|
||||
QFile f(theme_uri);
|
||||
if (!f.exists()) {
|
||||
NGLOG_ERROR(Frontend, "Unable to set style, stylesheet file not found");
|
||||
LOG_ERROR(Frontend, "Unable to set style, stylesheet file not found");
|
||||
} else {
|
||||
f.open(QFile::ReadOnly | QFile::Text);
|
||||
QTextStream ts(&f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue