diff options
| author | 2021-06-28 04:25:03 -0400 | |
|---|---|---|
| committer | 2021-06-28 04:25:03 -0400 | |
| commit | c5e25cffb9f561394a6b30c1b30a327404fa1545 (patch) | |
| tree | c8bc437134d8d637c0d96beafa9134a154538465 | |
| parent | Merge pull request #6529 from ReinUsesLisp/reaper-fixups (diff) | |
| parent | main: Display the instruction set of the running title in the window name (diff) | |
| download | yuzu-c5e25cffb9f561394a6b30c1b30a327404fa1545.tar.gz yuzu-c5e25cffb9f561394a6b30c1b30a327404fa1545.tar.xz yuzu-c5e25cffb9f561394a6b30c1b30a327404fa1545.zip | |
Merge pull request #6535 from ameerj/insert-fancy-name
main: Display the instruction set of the running title in the window name
| -rw-r--r-- | src/yuzu/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 6f5b2f6d6..20f65d233 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1422,6 +1422,9 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index, S | |||
| 1422 | title_name = Common::FS::PathToUTF8String( | 1422 | title_name = Common::FS::PathToUTF8String( |
| 1423 | std::filesystem::path{filename.toStdU16String()}.filename()); | 1423 | std::filesystem::path{filename.toStdU16String()}.filename()); |
| 1424 | } | 1424 | } |
| 1425 | const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); | ||
| 1426 | const auto instruction_set_suffix = is_64bit ? " (64-bit)" : " (32-bit)"; | ||
| 1427 | title_name += instruction_set_suffix; | ||
| 1425 | LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); | 1428 | LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); |
| 1426 | UpdateWindowTitle(title_name, title_version); | 1429 | UpdateWindowTitle(title_name, title_version); |
| 1427 | 1430 | ||