From 4cee25281f345d34fe04c779dc4c0e244f4970ac Mon Sep 17 00:00:00 2001 From: ameerj <52414509+ameerj@users.noreply.github.com> Date: Mon, 28 Jun 2021 00:37:24 -0400 Subject: main: Display the instruction set of the running title in the window name Displays whether the currently running title uses 64-bit instructions or only 32-bit instructions. --- src/yuzu/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 title_name = Common::FS::PathToUTF8String( std::filesystem::path{filename.toStdU16String()}.filename()); } + const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); + const auto instruction_set_suffix = is_64bit ? " (64-bit)" : " (32-bit)"; + title_name += instruction_set_suffix; LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); UpdateWindowTitle(title_name, title_version); -- cgit v1.2.3