mirror of
https://github.com/lesserkuma/GBA_MultiMenu.git
synced 2026-08-23 00:54:39 -05:00
-
This commit is contained in:
@@ -106,7 +106,7 @@ int main(void) {
|
||||
page_total = (roms_total + 8.0 - 1) / 8.0;
|
||||
|
||||
memcpy(&sFlashStatus, (void *)(AGB_ROM + flash_status_sector_offset * flash_sector_size), sizeof(sFlashStatus));
|
||||
if ((sFlashStatus.magic != MAGIC_FLASH_STATUS) || (sFlashStatus.last_boot_menu_index > roms_total)) {
|
||||
if ((sFlashStatus.magic != MAGIC_FLASH_STATUS) || (sFlashStatus.last_boot_menu_index >= roms_total)) {
|
||||
sFlashStatus.magic = MAGIC_FLASH_STATUS;
|
||||
sFlashStatus.version = 0;
|
||||
sFlashStatus.battery_present = 1;
|
||||
|
||||
Reference in New Issue
Block a user