fusee: fixes for sd meso on lower firmwares

This commit is contained in:
Michael Scire 2020-08-20 17:28:36 -07:00 committed by SciresM
parent ff9b9fc5ff
commit bb1cdd8c87
2 changed files with 10 additions and 3 deletions

View file

@ -936,7 +936,7 @@ uint32_t nxboot_main(void) {
size_t sd_meso_size = get_file_size("atmosphere/mesosphere.bin");
if (sd_meso_size != 0) {
if (sd_meso_size > PACKAGE2_SIZE_MAX) {
fatal_error("Error: atmosphere/kernel.bin is too large!\n");
fatal_error("Error: atmosphere/mesosphere.bin is too large!\n");
}
mesosphere = malloc(sd_meso_size);
if (mesosphere == NULL) {