mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
New SaveState folder for states. Removed some outdated code. Removed an unnecessary level of indirection for plugin calls. Assorted cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@389 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -53,23 +53,3 @@ void LoadCPReg(u32 SubCmd, u32 Value)
|
||||
case 0xB0: arraystrides[SubCmd & 0xF] = Value & 0xFF; break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#define BEGINSAVELOAD char *optr=ptr;
|
||||
#define SAVELOAD(what,size) memcpy((void*)((save)?(void*)(ptr):(void*)(what)),(void*)((save)?(void*)(what):(void*)(ptr)),(size)); ptr+=(size);
|
||||
#define ENDSAVELOAD return ptr-optr;
|
||||
|
||||
size_t CPSaveLoadState(char *ptr, BOOL save)
|
||||
{
|
||||
BEGINSAVELOAD;
|
||||
SAVELOAD(arraybases, 16 * sizeof(u32));
|
||||
SAVELOAD(arraystrides, 16 * sizeof(u32));
|
||||
SAVELOAD(&MatrixIndexA, sizeof(TMatrixIndexA));
|
||||
SAVELOAD(&MatrixIndexB, sizeof(TMatrixIndexB));
|
||||
if (!save)
|
||||
{
|
||||
CPUpdateMatricesA();
|
||||
CPUpdateMatricesB();
|
||||
}
|
||||
ENDSAVELOAD;
|
||||
}
|
Reference in New Issue
Block a user