Savestates: Cleanup v128 usage

It's compatible with bitwise serialization so it is faster to load/save it this way.
This commit is contained in:
Eladash 2022-07-06 17:52:31 +03:00 committed by Ivan
parent f546e5a8ef
commit 155bd09fd0
2 changed files with 5 additions and 26 deletions

View file

@ -1577,10 +1577,7 @@ bool ppu_thread::savable() const
void ppu_thread::serialize_common(utils::serial& ar)
{
ar(gpr, fpr, cr, fpscr.bits, lr, ctr, vrsave, cia, xer, sat, nj, prio, optional_savestate_state);
for (v128& reg : vr)
ar(reg._bytes);
ar(gpr, fpr, cr, fpscr.bits, lr, ctr, vrsave, cia, xer, sat, nj, prio, optional_savestate_state, vr);
if (optional_savestate_state->data.empty())
{