Added svcCreateSharedMemory

This commit is contained in:
David Marcec
2018-01-19 14:22:28 -08:00
parent c457f34eb2
commit 8b2fd0bf42
2 changed files with 26 additions and 5 deletions

View File

@@ -145,6 +145,14 @@ void SvcWrap() {
FuncReturn(retval);
}
template <ResultCode func(Handle*, u64, u64, u64)>
void SvcWrap() {
u32 param_1 = 0;
u32 retval = func(&param_1, PARAM(1), PARAM(2), PARAM(3)).raw;
Core::CPU().SetReg(1, param_1);
FuncReturn(retval);
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32