mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 22:57:47 +00:00
svc: Implement GetThreadId and GetProcessId.
This commit is contained in:
parent
9651b2db3a
commit
bfd01c7c71
2 changed files with 37 additions and 2 deletions
|
@ -161,6 +161,14 @@ void Wrap() {
|
|||
FuncReturn(retval);
|
||||
}
|
||||
|
||||
template <ResultCode func(u32*, Kernel::Handle)>
|
||||
void Wrap() {
|
||||
u32 param_1 = 0;
|
||||
u32 retval = func(¶m_1, PARAM(1)).raw;
|
||||
Core::CPU().SetReg(1, param_1);
|
||||
FuncReturn(retval);
|
||||
}
|
||||
|
||||
template <ResultCode func(u32)>
|
||||
void Wrap() {
|
||||
FuncReturn(func(PARAM(0)).raw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue