mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Savestates: HLE state saving POC in sys_lwmutex
This commit is contained in:
parent
2815aecd0c
commit
b692108f1e
12 changed files with 159 additions and 63 deletions
|
|
@ -9,6 +9,19 @@ namespace id_manager
|
|||
thread_local u32 g_id = 0;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool serialize<std::shared_ptr<utils::serial>>(utils::serial& ar, std::shared_ptr<utils::serial>& o)
|
||||
{
|
||||
if (!o || !ar.is_writing())
|
||||
{
|
||||
o.reset();
|
||||
o = std::make_shared<utils::serial>();
|
||||
}
|
||||
|
||||
ar(o->data);
|
||||
return true;
|
||||
}
|
||||
|
||||
std::vector<std::pair<u128, id_manager::typeinfo>>& id_manager::get_typeinfo_map()
|
||||
{
|
||||
// Magic static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue