summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-09-21 21:34:19 -0400
committerGravatar GitHub2019-09-21 21:34:19 -0400
commit7979ccd9569865952b552635f918c98899c91ce9 (patch)
tree7dd277ed5507f55d2d1390c51d8762f71c955718
parentUpdate README.md (#2871) (diff)
parentSwapped TID and Game name to make it easier to parse (diff)
downloadyuzu-7979ccd9569865952b552635f918c98899c91ce9.tar.gz
yuzu-7979ccd9569865952b552635f918c98899c91ce9.tar.xz
yuzu-7979ccd9569865952b552635f918c98899c91ce9.zip
Merge pull request #2883 from ogniK5377/log-game
Log the current title id and game name which is booting
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 1dcfac258..0865385e3 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -972,11 +972,11 @@ void GMainWindow::BootGame(const QString& filename) {
972 } 972 }
973 status_bar_update_timer.start(2000); 973 status_bar_update_timer.start(2000);
974 974
975 const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
976
975 std::string title_name; 977 std::string title_name;
976 const auto res = Core::System::GetInstance().GetGameName(title_name); 978 const auto res = Core::System::GetInstance().GetGameName(title_name);
977 if (res != Loader::ResultStatus::Success) { 979 if (res != Loader::ResultStatus::Success) {
978 const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
979
980 const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata(); 980 const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata();
981 if (nacp != nullptr) 981 if (nacp != nullptr)
982 title_name = nacp->GetApplicationName(); 982 title_name = nacp->GetApplicationName();
@@ -984,7 +984,7 @@ void GMainWindow::BootGame(const QString& filename) {
984 if (title_name.empty()) 984 if (title_name.empty())
985 title_name = FileUtil::GetFilename(filename.toStdString()); 985 title_name = FileUtil::GetFilename(filename.toStdString());
986 } 986 }
987 987 LOG_INFO(Frontend, "Booting game: {:016X} | {}", title_id, title_name);
988 UpdateWindowTitle(QString::fromStdString(title_name)); 988 UpdateWindowTitle(QString::fromStdString(title_name));
989 989
990 loading_screen->Prepare(Core::System::GetInstance().GetAppLoader()); 990 loading_screen->Prepare(Core::System::GetInstance().GetAppLoader());