mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
Custom path support (#1333)
also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
This commit is contained in:
@ -155,6 +155,43 @@ void Reset()
|
||||
*(u32*)&KeyY[3][8] = 0x202DDD1D;
|
||||
}
|
||||
|
||||
void DoSavestate(Savestate* file)
|
||||
{
|
||||
file->Section("AESi");
|
||||
|
||||
file->Var32(&Cnt);
|
||||
|
||||
file->Var32(&BlkCnt);
|
||||
file->Var32(&RemExtra);
|
||||
file->Var32(&RemBlocks);
|
||||
|
||||
file->Bool32(&OutputFlush);
|
||||
|
||||
file->Var32(&InputDMASize);
|
||||
file->Var32(&OutputDMASize);
|
||||
file->Var32(&AESMode);
|
||||
|
||||
InputFIFO.DoSavestate(file);
|
||||
OutputFIFO.DoSavestate(file);
|
||||
|
||||
file->VarArray(IV, 16);
|
||||
|
||||
file->VarArray(MAC, 16);
|
||||
|
||||
file->VarArray(KeyNormal, 4*16);
|
||||
file->VarArray(KeyX, 4*16);
|
||||
file->VarArray(KeyY, 4*16);
|
||||
|
||||
file->VarArray(CurKey, 16);
|
||||
file->VarArray(CurMAC, 16);
|
||||
|
||||
file->VarArray(OutputMAC, 16);
|
||||
file->Bool32(&OutputMACDue);
|
||||
|
||||
file->VarArray(Ctx.RoundKey, AES_keyExpSize);
|
||||
file->VarArray(Ctx.Iv, AES_BLOCKLEN);
|
||||
}
|
||||
|
||||
|
||||
void ProcessBlock_CCM_Extra()
|
||||
{
|
||||
|
Reference in New Issue
Block a user