minimig: use detected SDRAM size to adjust selected FastRAM config if required.

This commit is contained in:
sorgelig
2019-09-04 00:07:21 +08:00
parent 25fb4570fe
commit 6845359231
4 changed files with 23 additions and 7 deletions

View File

@@ -177,7 +177,7 @@ const char *config_tos_usb[] = { "none", "control", "debug", "serial", "parallel
const char *config_memory_chip_msg[] = { "512K", "1M", "1.5M", "2M" };
const char *config_memory_slow_msg[] = { "none", "512K", "1M", "1.5M" };
const char *config_memory_fast_msg[] = { "none", "2M", "4M", "25M", "58M", "293M", "327M" };
const char *config_memory_fast_msg[] = { "none", "2M", "4M", "24M", "56M", "280M", "312M" };
const char *config_scanlines_msg[] = { "off", "dim", "black" };
const char *config_ar_msg[] = { "4:3", "16:9" };
@@ -3499,7 +3499,7 @@ void HandleUI(void)
OsdWrite(6, s, menusub == 4, 0);
OsdWrite(7, "", 0, 0);
OsdWrite(8, ((minimig_config.memory & 0x80) && !(minimig_config.memory & 0x10)) ? " ** 64MB SDRAM REQUIRED **" : "", 0, 0);
OsdWrite(8, ((minimig_config.memory & 0x80) && !(minimig_config.memory & 0x10) && !(sdram_sz() & 2)) ? " ** 64MB SDRAM REQUIRED **" : "", 0, 0);
for (int i = 9; i < OsdGetSize() - 1; i++) OsdWrite(i, "", 0, 0);
OsdWrite(OsdGetSize() - 1, STD_EXIT, menusub == 5, 0);