[Kernel] Include XEX version in log

This commit is contained in:
emoose 2020-01-07 20:05:26 +00:00
parent 62024b790e
commit a73a24eafe
1 changed files with 14 additions and 0 deletions

View File

@ -627,6 +627,20 @@ void UserModule::Dump() {
sb.AppendFormat(" Media ID: %.8X\n", sb.AppendFormat(" Media ID: %.8X\n",
static_cast<uint32_t>(opt_exec_info->media_id)); static_cast<uint32_t>(opt_exec_info->media_id));
auto& version = opt_exec_info->version;
auto& version_base = opt_exec_info->base_version;
if (version.value != version_base.value) {
sb.AppendFormat(" Version: %d.%d.%d.%d (base %d.%d.%d.%d)\n",
version.major(), version.minor(), version.build(),
version.qfe(), version_base.major(),
version_base.minor(), version_base.build(),
version_base.qfe());
} else {
sb.AppendFormat(" Version: %d.%d.%d.%d\n", version.major(),
version.minor(), version.build(), version.qfe());
}
sb.AppendFormat(" Title ID: %.8X\n", sb.AppendFormat(" Title ID: %.8X\n",
static_cast<uint32_t>(opt_exec_info->title_id)); static_cast<uint32_t>(opt_exec_info->title_id));
sb.AppendFormat(" Savegame ID: %.8X\n", sb.AppendFormat(" Savegame ID: %.8X\n",