1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Savestates: Fix g_fxo->init for types which use a pointer

This commit is contained in:
Eladash 2023-12-31 23:11:02 +02:00 committed by Elad Ashkenazi
parent 467790c8d8
commit 9455bfe6c2

View File

@ -456,9 +456,22 @@ namespace stx
if constexpr ((std::is_same_v<std::remove_cvref_t<Args>, utils::serial> || ...))
{
ensure(type_info->save);
serial_breathe_and_tag(std::get<0>(std::tie(args...)), get_name<T, As>(), false);
}
if constexpr ((std::is_same_v<std::remove_cvref_t<Args>, utils::serial*> || ...))
{
ensure(type_info->save);
utils::serial* ar = std::get<0>(std::tie(args...));
if (ar)
{
serial_breathe_and_tag(*ar, get_name<T, As>(), false);
}
}
g_tls_serialize_name = {};
*m_order++ = obj;