mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
fixup! hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory.
This commit is contained in:
parent
7866eb03bb
commit
caa11748c6
1 changed files with 3 additions and 3 deletions
|
@ -557,8 +557,8 @@ void SvcWrap32(Core::System& system) {
|
||||||
// Used by MapSharedMemory32
|
// Used by MapSharedMemory32
|
||||||
template <ResultCode func(Core::System&, Handle, u32, u32, Svc::MemoryPermission)>
|
template <ResultCode func(Core::System&, Handle, u32, u32, Svc::MemoryPermission)>
|
||||||
void SvcWrap32(Core::System& system) {
|
void SvcWrap32(Core::System& system) {
|
||||||
const u32 retval =
|
const u32 retval = func(system, static_cast<Handle>(Param(system, 0)),
|
||||||
func(system, static_cast<Handle>(Param(system, 0)), static_cast<u32>(Param(system, 1)), static_cast<u32>(Param(system, 2)),
|
static_cast<u32>(Param(system, 1)), static_cast<u32>(Param(system, 2)),
|
||||||
static_cast<Svc::MemoryPermission>(Param(system, 3)))
|
static_cast<Svc::MemoryPermission>(Param(system, 3)))
|
||||||
.raw;
|
.raw;
|
||||||
FuncReturn(system, retval);
|
FuncReturn(system, retval);
|
||||||
|
|
Loading…
Reference in a new issue