fix [2705723] 4mb flash savetype is broken.
This commit is contained in:
parent
c2ddd1f83e
commit
12c709885b
|
@ -4205,7 +4205,7 @@ void FASTCALL MMU_write8(u32 proc, u32 adr, u8 val)
|
|||
}
|
||||
|
||||
void mmu_select_savetype(int type, int *bmemtype, u32 *bmemsize) {
|
||||
if (type<0 || type > 5) return;
|
||||
if (type<0 || type > 6) return;
|
||||
*bmemtype=save_types[type][0];
|
||||
*bmemsize=save_types[type][1];
|
||||
mc_realloc(&MMU.bupmem, *bmemtype, *bmemsize);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
yopyop156.ifrance.com
|
||||
|
||||
Copyright (C) 2006 Mic
|
||||
Copyright (C) 2009 CrazyMax
|
||||
Copyright (C) 2009 CrazyMax
|
||||
Copyright (C) 2009 DeSmuME team
|
||||
|
||||
This file is part of DeSmuME
|
||||
|
|
|
@ -1587,6 +1587,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
|
|||
MainWindow->checkMenu(IDC_SAVETYPE4, MF_BYCOMMAND | MF_UNCHECKED);
|
||||
MainWindow->checkMenu(IDC_SAVETYPE5, MF_BYCOMMAND | MF_UNCHECKED);
|
||||
MainWindow->checkMenu(IDC_SAVETYPE6, MF_BYCOMMAND | MF_UNCHECKED);
|
||||
MainWindow->checkMenu(IDC_SAVETYPE7, MF_BYCOMMAND | MF_UNCHECKED);
|
||||
|
||||
MainWindow->Show(SW_NORMAL);
|
||||
run();
|
||||
|
|
Loading…
Reference in New Issue