mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-22 11:47:55 -05:00
SVC: Replace GetPointer usage with Read32 in ReplyAndReceive.
This commit is contained in:
@ -69,11 +69,10 @@ void Wrap() {
|
||||
FuncReturn(retval);
|
||||
}
|
||||
|
||||
template <ResultCode func(s32*, u32*, s32, u32)>
|
||||
template <ResultCode func(s32*, VAddr, s32, u32)>
|
||||
void Wrap() {
|
||||
s32 param_1 = 0;
|
||||
u32 retval =
|
||||
func(¶m_1, (Kernel::Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2), PARAM(3)).raw;
|
||||
u32 retval = func(¶m_1, PARAM(1), (s32)PARAM(2), PARAM(3)).raw;
|
||||
|
||||
Core::CPU().SetReg(1, (u32)param_1);
|
||||
FuncReturn(retval);
|
||||
|
Reference in New Issue
Block a user