diff options
Diffstat (limited to 'src')
| -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 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()); |