mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-23 04:41:12 +00:00
Adjust version string based on ReSwitched vote.
This commit is contained in:
parent
d09be18359
commit
2225b86eea
1 changed files with 6 additions and 5 deletions
|
@ -58,12 +58,13 @@ void VersionManager::Initialize() {
|
||||||
/* Modify the output firmware version. */
|
/* Modify the output firmware version. */
|
||||||
{
|
{
|
||||||
u32 major, minor, micro;
|
u32 major, minor, micro;
|
||||||
char display_version[sizeof(g_ams_fw_version.display_version)] = {0};
|
|
||||||
|
|
||||||
GetAtmosphereApiVersion(&major, &minor, µ, nullptr, nullptr);
|
GetAtmosphereApiVersion(&major, &minor, µ, nullptr, nullptr);
|
||||||
snprintf(display_version, sizeof(display_version), "%s (AMS %u.%u.%u)", g_ams_fw_version.display_version, major, minor, micro);
|
const char emummc_char = IsEmummc() ? 'E' : 'S';
|
||||||
|
{
|
||||||
memcpy(g_ams_fw_version.display_version, display_version, sizeof(g_ams_fw_version.display_version));
|
char display_version[sizeof(g_ams_fw_version.display_version)] = {0};
|
||||||
|
std::snprintf(display_version, sizeof(display_version), "%s|AMS %u.%u.%u|%c", g_ams_fw_version.display_version, major, minor, micro, emummc_char);
|
||||||
|
std::memcpy(g_ams_fw_version.display_version, display_version, sizeof(g_ams_fw_version.display_version));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_got_version = true;
|
g_got_version = true;
|
||||||
|
|
Loading…
Reference in a new issue