mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
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
This commit is contained in:
parent
b9fd1e2bed
commit
934ce530f6
1 changed files with 3 additions and 3 deletions
|
@ -964,11 +964,11 @@ void GMainWindow::BootGame(const QString& filename) {
|
||||||
}
|
}
|
||||||
status_bar_update_timer.start(2000);
|
status_bar_update_timer.start(2000);
|
||||||
|
|
||||||
|
const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
|
||||||
|
|
||||||
std::string title_name;
|
std::string title_name;
|
||||||
const auto res = Core::System::GetInstance().GetGameName(title_name);
|
const auto res = Core::System::GetInstance().GetGameName(title_name);
|
||||||
if (res != Loader::ResultStatus::Success) {
|
if (res != Loader::ResultStatus::Success) {
|
||||||
const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
|
|
||||||
|
|
||||||
const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata();
|
const auto [nacp, icon_file] = FileSys::PatchManager(title_id).GetControlMetadata();
|
||||||
if (nacp != nullptr)
|
if (nacp != nullptr)
|
||||||
title_name = nacp->GetApplicationName();
|
title_name = nacp->GetApplicationName();
|
||||||
|
@ -976,7 +976,7 @@ void GMainWindow::BootGame(const QString& filename) {
|
||||||
if (title_name.empty())
|
if (title_name.empty())
|
||||||
title_name = FileUtil::GetFilename(filename.toStdString());
|
title_name = FileUtil::GetFilename(filename.toStdString());
|
||||||
}
|
}
|
||||||
|
LOG_INFO(Frontend, "Booting game: \"{}\" | {:016X}", title_name, title_id);
|
||||||
UpdateWindowTitle(QString::fromStdString(title_name));
|
UpdateWindowTitle(QString::fromStdString(title_name));
|
||||||
|
|
||||||
loading_screen->Prepare(Core::System::GetInstance().GetAppLoader());
|
loading_screen->Prepare(Core::System::GetInstance().GetAppLoader());
|
||||||
|
|
Loading…
Reference in a new issue