Savestates/RSX: Save drawing context

This commit is contained in:
Eladash 2022-07-07 12:50:15 +03:00 committed by Ivan
parent 5f8f9e33f1
commit 4ac88fa8d3
5 changed files with 20 additions and 1 deletions

View file

@ -258,6 +258,13 @@ namespace utils
return true;
}
template <typename T> requires requires (T& obj) { (obj.*(&T::operator()))(std::declval<stx::exact_t<utils::serial&>>()); }
bool serialize(T& obj)
{
obj(*this);
return is_valid();
}
template <usz i = 0, typename T>
bool serialize_tuple(T& obj)
{