declCPU removed, PPUThread& is passed as argument

Added experimental feature: passing PPUThread& to syscall
This commit is contained in:
Nekotekina 2014-09-16 21:46:22 +04:00
parent 8cc09d1c91
commit 626133c0eb
15 changed files with 111 additions and 81 deletions

View file

@ -224,7 +224,7 @@ bool ModuleManager::IsLoadedFunc(u32 id) const
return false;
}
bool ModuleManager::CallFunc(u32 num)
bool ModuleManager::CallFunc(PPUThread& CPU, u32 num)
{
func_caller* func = nullptr;
{
@ -242,7 +242,7 @@ bool ModuleManager::CallFunc(u32 num)
if (func)
{
(*func)();
(*func)(CPU);
return true;
}
return false;