fix unlaunch 'battery low' error

settings still don't survive a reset for some reason
This commit is contained in:
Arisotura
2021-04-23 22:30:53 +02:00
parent 964199ab47
commit d7140543c5
2 changed files with 12 additions and 3 deletions

View File

@ -79,14 +79,15 @@ void Start()
u8 Read(bool last)
{
//printf("BPTWL: read %02X -> %02X @ %08X\n", CurPos, Registers[CurPos], NDS::GetPC(1));
u8 ret = Registers[CurPos++];
if (last)
{
CurPos = -1;
return 0;
}
//printf("BPTWL: read %02X -> %02X\n", CurPos, Registers[CurPos]);
return Registers[CurPos++];
return ret;
}
void Write(u8 val, bool last)