Fixed issue where flashram was reset on ROM reset.

This commit is contained in:
emukidid 2010-05-25 13:35:55 +00:00
parent 1529cf3fa9
commit e4412d2fa9
3 changed files with 6 additions and 1 deletions

View file

@ -129,7 +129,10 @@ void init_flashram()
{
mode = NOPES_MODE;
status = 0;
memset(&flashram[0],0xFF,0x20000);
}
void reset_flashram() {
memset(&flashram[0],0xFF,0x20000);
}
unsigned long flashram_status()

View file

@ -31,6 +31,7 @@ extern int use_flashram;
void init_flashram();
void reset_flashram();
void flashram_command(unsigned long command);
unsigned long flashram_status();
void dma_read_flashram();

View file

@ -337,6 +337,7 @@ int loadROM(fileBrowser_file* rom){
#endif
}
format_mempacks();
reset_flashram();
init_eeprom();
hasLoadedROM = TRUE;
#ifndef HW_RVL