mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Some cleanup
* Prefer default initializer over std::memset 0 when possible and more readable. * Use std::format in trophy files name obtaining. * Use vm::ptr<>::operator bool() instead of comparing vm::ptr to vm::null or using addr(). * Add a few std::memset calls in hle where it matters (or in some places just to document an actual firmware memcpy call).
This commit is contained in:
parent
5de83e0425
commit
9690854e58
20 changed files with 52 additions and 88 deletions
|
|
@ -204,11 +204,11 @@ error_code sys_ppu_thread_register_atexit(ppu_thread& ppu, vm::ptr<void()> func)
|
|||
}
|
||||
}
|
||||
|
||||
for (auto& pp : *g_ppu_atexit)
|
||||
for (auto& pf : *g_ppu_atexit)
|
||||
{
|
||||
if (pp == vm::null)
|
||||
if (!pf)
|
||||
{
|
||||
pp = func;
|
||||
pf = func;
|
||||
return CELL_OK;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue