Savestates Support For PS3 Emulation (#10478)

This commit is contained in:
Elad Ashkenazi 2022-07-04 16:02:17 +03:00 committed by GitHub
parent 969b9eb89d
commit fcd297ffb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
154 changed files with 4948 additions and 635 deletions

View file

@ -74,10 +74,32 @@ struct music_state
std::shared_ptr<music_handler_base> handler;
music_selection_context current_selection_context;
SAVESTATE_INIT_POS(16);
music_state()
{
handler = Emu.GetCallbacks().get_music_handler();
}
music_state(utils::serial& ar)
: music_state()
{
save(ar);
}
void save(utils::serial& ar)
{
ar(func);
if (!func)
{
return;
}
USING_SERIALIZATION_VERSION_COND(ar.is_writing(), cellMusic);
ar(userData);
}
};
error_code cell_music_select_contents()