mirror of
https://github.com/extremscorner/not64.git
synced 2024-05-29 01:07:58 -04:00
Fixed issue where flashram was reset on ROM reset.
This commit is contained in:
parent
1529cf3fa9
commit
e4412d2fa9
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -337,6 +337,7 @@ int loadROM(fileBrowser_file* rom){
|
|||
#endif
|
||||
}
|
||||
format_mempacks();
|
||||
reset_flashram();
|
||||
init_eeprom();
|
||||
hasLoadedROM = TRUE;
|
||||
#ifndef HW_RVL
|
||||
|
|
Loading…
Reference in a new issue