add wificycle to savestate (probably an unimportant bug)

add write_enable=FALSE to backupdevice init (possibly an important bug)
This commit is contained in:
zeromus 2009-06-18 15:25:41 +00:00
parent 33e735a926
commit 8477368c41
2 changed files with 2 additions and 0 deletions

View File

@ -286,6 +286,7 @@ void BackupDevice::reset()
flushPending = false;
lazyFlushPending = false;
data.resize(0);
write_enable = FALSE;
data_autodetect.resize(0);
state = DETECTING;

View File

@ -162,6 +162,7 @@ SFORMAT SF_NDS[]={
{ "_9CY", 4, 1, &nds.ARM9Cycle},
{ "_7CY", 4, 1, &nds.ARM7Cycle},
{ "_CYC", 4, 1, &nds.cycles},
{ "_WCY", 4, 1, &nds.wifiCycle},
{ "_TCY", 4, 8, nds.timerCycle},
{ "_TOV", 4, 8, nds.timerOver},
{ "_NHB", 4, 1, &nds.nextHBlank},