diff options
| author | 2019-09-21 17:34:46 +1000 | |
|---|---|---|
| committer | 2019-09-21 17:34:46 +1000 | |
| commit | 934ce530f6281e24e227362fb4113d5a051b9441 (patch) | |
| tree | 4a5dd5341e23adefd8913cf1011a11cd4aed5a42 | |
| parent | Merge pull request #2879 from ogniK5377/trace-submitgpfifo (diff) | |
| download | yuzu-934ce530f6281e24e227362fb4113d5a051b9441.tar.gz yuzu-934ce530f6281e24e227362fb4113d5a051b9441.tar.xz yuzu-934ce530f6281e24e227362fb4113d5a051b9441.zip | |
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
| -rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files 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) { | |||
| 964 | } | 964 | } |
| 965 | status_bar_update_timer.start(2000); | 965 | status_bar_update_timer.start(2000); |
| 966 | 966 | ||
| 967 | const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); | ||
| 968 | |||
| 967 | std::string title_name; | 969 | std::string title_name; |
| 968 | const auto res = Core::System::GetInstance().GetGameName(title_name); | 970 | const auto res = Core::System::GetInstance().GetGameName(title_name); |
| 969 | if (res != Loader::ResultStatus::Success) { | 971 | if (res != Loader::ResultStatus::Success) { |
| 970 | const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); | ||
| 971 | |||
| 972 | const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata(); | 972 | const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata(); |
| 973 | if (nacp != nullptr) | 973 | if (nacp != nullptr) |
| 974 | title_name = nacp->GetApplicationName(); | 974 | title_name = nacp->GetApplicationName(); |
| @@ -976,7 +976,7 @@ void GMainWindow::BootGame(const QString& filename) { | |||
| 976 | if (title_name.empty()) | 976 | if (title_name.empty()) |
| 977 | title_name = FileUtil::GetFilename(filename.toStdString()); | 977 | title_name = FileUtil::GetFilename(filename.toStdString()); |
| 978 | } | 978 | } |
| 979 | 979 | LOG_INFO(Frontend, "Booting game: \"{}\" | {:016X}", title_name, title_id); | |
| 980 | UpdateWindowTitle(QString::fromStdString(title_name)); | 980 | UpdateWindowTitle(QString::fromStdString(title_name)); |
| 981 | 981 | ||
| 982 | loading_screen->Prepare(Core::System::GetInstance().GetAppLoader()); | 982 | loading_screen->Prepare(Core::System::GetInstance().GetAppLoader()); |