mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 15:04:15 +01:00
Update N64.ino
Allows to manually select a dump size up to 128 MB (used by some repros/aftermarket boards)
This commit is contained in:
parent
04ae5178d9
commit
33df3c43b5
@ -87,7 +87,8 @@ static const char N64RomItem3[] PROGMEM = "12 MB";
|
|||||||
static const char N64RomItem4[] PROGMEM = "16 MB";
|
static const char N64RomItem4[] PROGMEM = "16 MB";
|
||||||
static const char N64RomItem5[] PROGMEM = "32 MB";
|
static const char N64RomItem5[] PROGMEM = "32 MB";
|
||||||
static const char N64RomItem6[] PROGMEM = "64 MB";
|
static const char N64RomItem6[] PROGMEM = "64 MB";
|
||||||
static const char* const romOptionsN64[] PROGMEM = { N64RomItem1, N64RomItem2, N64RomItem3, N64RomItem4, N64RomItem5, N64RomItem6 };
|
static const char N64RomItem7[] PROGMEM = "128 MB";
|
||||||
|
static const char* const romOptionsN64[] PROGMEM = { N64RomItem1, N64RomItem2, N64RomItem3, N64RomItem4, N64RomItem5, N64RomItem6, N64RomItem7 };
|
||||||
|
|
||||||
// Save menu
|
// Save menu
|
||||||
static const char N64SaveItem1[] PROGMEM = "None";
|
static const char N64SaveItem1[] PROGMEM = "None";
|
||||||
@ -1973,8 +1974,8 @@ void printCartInfo_N64() {
|
|||||||
// Set cartsize manually
|
// Set cartsize manually
|
||||||
unsigned char N64RomMenu;
|
unsigned char N64RomMenu;
|
||||||
// Copy menuOptions out of progmem
|
// Copy menuOptions out of progmem
|
||||||
convertPgm(romOptionsN64, 6);
|
convertPgm(romOptionsN64, 7);
|
||||||
N64RomMenu = question_box(F("Select ROM size"), menuOptions, 6, 0);
|
N64RomMenu = question_box(F("Select ROM size"), menuOptions, 7, 0);
|
||||||
|
|
||||||
// wait for user choice to come back from the question box menu
|
// wait for user choice to come back from the question box menu
|
||||||
switch (N64RomMenu) {
|
switch (N64RomMenu) {
|
||||||
@ -2007,6 +2008,11 @@ void printCartInfo_N64() {
|
|||||||
// 64MB
|
// 64MB
|
||||||
cartSize = 64;
|
cartSize = 64;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
// 128MB
|
||||||
|
cartSize = 128;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3107,13 +3113,11 @@ void flashRepro_N64() {
|
|||||||
sprintf(flashid_str, "%s", "CONF");
|
sprintf(flashid_str, "%s", "CONF");
|
||||||
sprintf(cartID, "%s", "CONF");
|
sprintf(cartID, "%s", "CONF");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Set cartsize manually
|
// Set cartsize manually
|
||||||
unsigned char N64RomMenu;
|
unsigned char N64RomMenu;
|
||||||
// Copy menuOptions out of progmem
|
// Copy menuOptions out of progmem
|
||||||
convertPgm(romOptionsN64, 6);
|
convertPgm(romOptionsN64, 7);
|
||||||
N64RomMenu = question_box(F("Select flash size"), menuOptions, 6, 0);
|
N64RomMenu = question_box(F("Select flash size"), menuOptions, 7, 0);
|
||||||
|
|
||||||
// wait for user choice to come back from the question box menu
|
// wait for user choice to come back from the question box menu
|
||||||
switch (N64RomMenu) {
|
switch (N64RomMenu) {
|
||||||
@ -3146,6 +3150,11 @@ void flashRepro_N64() {
|
|||||||
// 64MB
|
// 64MB
|
||||||
cartSize = 64;
|
cartSize = 64;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
// 128MB
|
||||||
|
cartSize = 128;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set flash buffer manually
|
// Set flash buffer manually
|
||||||
|
Loading…
Reference in New Issue
Block a user