Updated IDManager

ID member m_flags has been replaced with m_type, which stores the type
of the object referenced by the ID and added std::set<IDType> to the ID
manager to group relevant IDs in order to use them later in some
lv2/sys_process functions and the Kernel Explorer.
This commit is contained in:
Alexandro Sánchez Bach 2014-07-26 05:31:46 +02:00
parent 475fb0d8c8
commit d53327f8bb
21 changed files with 154 additions and 131 deletions

View file

@ -11,7 +11,11 @@ s32 sys_timer_create(mem32_t timer_id)
{
sys_timer.Warning("sys_timer_create(timer_id_addr=0x%x)", timer_id.GetAddr());
timer_id = sys_timer.GetNewId(new timer);
if (!timer_id.IsGood()) {
return CELL_EFAULT;
}
timer_id = sys_timer.GetNewId(new timer, TYPE_TIMER);
return CELL_OK;
}