1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 13:52:21 +00:00

Adjust version string based on ReSwitched vote.

This commit is contained in:
Michael Scire 2019-07-02 11:49:24 -07:00
parent d09be18359
commit 2225b86eea

View file

@ -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, &micro, nullptr, nullptr); GetAtmosphereApiVersion(&major, &minor, &micro, 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;