mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 07:50:37 +00:00
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.
This commit is contained in:
parent
4df04ad48a
commit
4cee25281f
1 changed files with 3 additions and 0 deletions
|
@ -1422,6 +1422,9 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index, S
|
||||||
title_name = Common::FS::PathToUTF8String(
|
title_name = Common::FS::PathToUTF8String(
|
||||||
std::filesystem::path{filename.toStdU16String()}.filename());
|
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);
|
LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version);
|
||||||
UpdateWindowTitle(title_name, title_version);
|
UpdateWindowTitle(title_name, title_version);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue