customs mods

small changes on code to show custom bootlogo and the package version showing on system settings
This commit is contained in:
CostelaCNX 2024-10-20 19:47:37 -03:00
parent c6014b533f
commit 321e15a45d
3 changed files with 921640 additions and 7 deletions

View File

@ -30,6 +30,9 @@ namespace ams::mitm::settings {
constinit bool g_cached_firmware_version; constinit bool g_cached_firmware_version;
constinit settings::FirmwareVersion g_firmware_version; constinit settings::FirmwareVersion g_firmware_version;
constinit settings::FirmwareVersion g_ams_firmware_version; constinit settings::FirmwareVersion g_ams_firmware_version;
/* Add here your package version */
char package_version[13] = "CNX 19.0.0-2";
void CacheFirmwareVersion() { void CacheFirmwareVersion() {
if (AMS_LIKELY(g_cached_firmware_version)) { if (AMS_LIKELY(g_cached_firmware_version)) {
@ -65,10 +68,11 @@ namespace ams::mitm::settings {
/* NOTE: We have carefully accounted for the size of the string we print. */ /* NOTE: We have carefully accounted for the size of the string we print. */
/* No truncation occurs assuming two-digits for all version number components. */ /* No truncation occurs assuming two-digits for all version number components. */
char display_version[sizeof(g_ams_firmware_version.display_version)]; char display_version[sizeof(g_ams_firmware_version.display_version) + sizeof(package_version)];
util::SNPrintf(display_version, sizeof(display_version), "%s|AMS %u.%u.%u|%c", g_ams_firmware_version.display_version, api_info.GetMajorVersion(), api_info.GetMinorVersion(), api_info.GetMicroVersion(), emummc_char);
/* util::SNPrintf(display_version, sizeof(display_version), "%s|AMS %u.%u.%u|%c", g_ams_firmware_version.display_version, api_info.GetMajorVersion(), api_info.GetMinorVersion(), api_info.GetMicroVersion(), emummc_char); */
util::SNPrintf(display_version, sizeof(display_version), "%s|%s|AMS %u.%u.%u|%c", g_ams_firmware_version.display_version, package_version, api_info.GetMajorVersion(), api_info.GetMinorVersion(), api_info.GetMicroVersion(), emummc_char);
std::memcpy(g_ams_firmware_version.display_version, display_version, sizeof(display_version)); std::memcpy(g_ams_firmware_version.display_version, display_version, sizeof(display_version));
} }

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@ namespace ams::boot {
/* Include splash screen into anonymous namespace. */ /* Include splash screen into anonymous namespace. */
/* TODO: Compile-time switch for splash_screen_text.hpp? */ /* TODO: Compile-time switch for splash_screen_text.hpp? */
#include "boot_splash_screen_notext.inc" #include "boot_splash_cnx.inc"
} }
@ -38,10 +38,9 @@ namespace ams::boot {
{ {
/* Splash screen is shown for 2 seconds. */ /* Splash screen is shown for 2 seconds. */
ShowDisplay(SplashScreenX, SplashScreenY, SplashScreenW, SplashScreenH, SplashScreen); ShowDisplay(SplashScreenX, SplashScreenY, SplashScreenW, SplashScreenH, SplashScreen);
os::SleepThread(TimeSpan::FromSeconds(2)); os::SleepThread(TimeSpan::FromSeconds(4));
} }
FinalizeDisplay(); FinalizeDisplay();
} }
} }