save battery levels to config

This commit is contained in:
Arisotura
2022-03-06 22:47:21 +01:00
parent 3ec40c3dc8
commit a437a76f35
6 changed files with 49 additions and 5 deletions

View File

@ -618,7 +618,7 @@ void Reset()
Registers[4] = 0x40;
RegMasks[0] = 0x7F;
RegMasks[1] = 0x01;
RegMasks[1] = 0x00;
RegMasks[2] = 0x01;
RegMasks[3] = 0x03;
RegMasks[4] = 0x0F;
@ -663,6 +663,7 @@ void Write(u8 val, u32 hold)
if (DataPos == 1)
{
// TODO: DSi-specific registers in DSi mode
u32 regid = Index & 0x07;
if (Index & 0x80)