Savestates: Compressed state files

This commit is contained in:
Eladash 2023-11-15 21:07:42 +02:00 committed by Elad Ashkenazi
parent 91dbd92193
commit f60bdbaece
27 changed files with 1377 additions and 370 deletions

View file

@ -43,7 +43,7 @@ struct trophy_context_t
trophy_context_t() = default;
trophy_context_t(utils::serial& ar)
: trp_name(ar.operator std::string())
: trp_name(ar.pop<std::string>())
{
std::string trophy_path = vfs::get(Emu.GetDir() + "TROPDIR/" + trp_name + "/TROPHY.TRP");
fs::file trp_stream(trophy_path);
@ -55,7 +55,7 @@ struct trophy_context_t
trp_stream.open(trophy_path);
}
if (!ar.operator bool())
if (!ar.pop<bool>())
{
ar(read_only);
return;