mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-07 07:59:27 +02:00
customs mods
small changes on code to show custom bootlogo and the package version showing on system settings
This commit is contained in:
parent
c6014b533f
commit
321e15a45d
@ -30,6 +30,9 @@ namespace ams::mitm::settings {
|
||||
constinit bool g_cached_firmware_version;
|
||||
constinit settings::FirmwareVersion g_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() {
|
||||
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. */
|
||||
/* No truncation occurs assuming two-digits for all version number components. */
|
||||
char display_version[sizeof(g_ams_firmware_version.display_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);
|
||||
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|%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));
|
||||
}
|
||||
|
||||
|
921630
stratosphere/boot/source/boot_splash_cnx.inc
Normal file
921630
stratosphere/boot/source/boot_splash_cnx.inc
Normal file
File diff suppressed because it is too large
Load Diff
@ -24,7 +24,7 @@ namespace ams::boot {
|
||||
|
||||
/* Include splash screen into anonymous namespace. */
|
||||
/* 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. */
|
||||
ShowDisplay(SplashScreenX, SplashScreenY, SplashScreenW, SplashScreenH, SplashScreen);
|
||||
os::SleepThread(TimeSpan::FromSeconds(2));
|
||||
os::SleepThread(TimeSpan::FromSeconds(4));
|
||||
}
|
||||
FinalizeDisplay();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user