From 934ce530f6281e24e227362fb4113d5a051b9441 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 21 Sep 2019 17:34:46 +1000 Subject: Log the current title id and game name which is booting Spit out a LOG_INFO of the current game name and it's title id in the log. This helps to read log files and figure out which games have which issues --- src/yuzu/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 8304c6517..9a42a998a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -964,11 +964,11 @@ void GMainWindow::BootGame(const QString& filename) { } status_bar_update_timer.start(2000); + const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); + std::string title_name; const auto res = Core::System::GetInstance().GetGameName(title_name); if (res != Loader::ResultStatus::Success) { - const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); - const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata(); if (nacp != nullptr) title_name = nacp->GetApplicationName(); @@ -976,7 +976,7 @@ void GMainWindow::BootGame(const QString& filename) { if (title_name.empty()) title_name = FileUtil::GetFilename(filename.toStdString()); } - + LOG_INFO(Frontend, "Booting game: \"{}\" | {:016X}", title_name, title_id); UpdateWindowTitle(QString::fromStdString(title_name)); loading_screen->Prepare(Core::System::GetInstance().GetAppLoader()); -- cgit v1.2.3 From b4db662053f98cb76d81f43e268f8f9104e523ea Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 21 Sep 2019 17:43:18 +1000 Subject: Swapped TID and Game name to make it easier to parse --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 9a42a998a..9d2072e14 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -976,7 +976,7 @@ void GMainWindow::BootGame(const QString& filename) { if (title_name.empty()) title_name = FileUtil::GetFilename(filename.toStdString()); } - LOG_INFO(Frontend, "Booting game: \"{}\" | {:016X}", title_name, title_id); + LOG_INFO(Frontend, "Booting game: {:016X} | {}", title_id, title_name); UpdateWindowTitle(QString::fromStdString(title_name)); loading_screen->Prepare(Core::System::GetInstance().GetAppLoader()); -- cgit v1.2.3