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:
parent
467790c8d8
commit
9455bfe6c2
@ -456,9 +456,22 @@ namespace stx
|
|||||||
if constexpr ((std::is_same_v<std::remove_cvref_t<Args>, utils::serial> || ...))
|
if constexpr ((std::is_same_v<std::remove_cvref_t<Args>, utils::serial> || ...))
|
||||||
{
|
{
|
||||||
ensure(type_info->save);
|
ensure(type_info->save);
|
||||||
|
|
||||||
serial_breathe_and_tag(std::get<0>(std::tie(args...)), get_name<T, As>(), false);
|
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 = {};
|
g_tls_serialize_name = {};
|
||||||
|
|
||||||
*m_order++ = obj;
|
*m_order++ = obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user