1
0
Fork 0
forked from suyu/suyu

Merge pull request #6535 from ameerj/insert-fancy-name

main: Display the instruction set of the running title in the window name
This commit is contained in:
Morph 2021-06-28 04:25:03 -04:00 committed by GitHub
commit c5e25cffb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);