diff options
| -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()); |