aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/applets/mii_selector.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-04-17 21:07:52 -0500
committerSubv <subv2112@gmail.com>2016-05-12 20:00:32 -0500
commitb53900a6ab83c14d310cd26f0d762ebcd2535a55 (patch)
tree8004faa76770c076e2d84d51a64c6419f796a477 /src/core/hle/applets/mii_selector.cpp
parentb2c771eed7acf3925314caaad306585608b548c0 (diff)
Kernel/SharedMemory: Properly implemented shared memory support.
Applications can request the kernel to allocate a piece of the linear heap for them when creating a shared memory object. Shared memory areas are now properly mapped into the target processes when calling svcMapMemoryBlock. Removed the APT Shared Font hack as it is no longer needed.
Diffstat (limited to 'src/core/hle/applets/mii_selector.cpp')
-rw-r--r--src/core/hle/applets/mii_selector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/applets/mii_selector.cpp b/src/core/hle/applets/mii_selector.cpp
index b4456ca90b..7f174f3e6a 100644
--- a/src/core/hle/applets/mii_selector.cpp
+++ b/src/core/hle/applets/mii_selector.cpp
@@ -36,8 +36,8 @@ ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& p
memcpy(&capture_info, parameter.data, sizeof(capture_info));
using Kernel::MemoryPermission;
- framebuffer_memory = Kernel::SharedMemory::Create(capture_info.size, MemoryPermission::ReadWrite,
- MemoryPermission::ReadWrite, "MiiSelector Memory");
+ framebuffer_memory = Kernel::SharedMemory::Create(nullptr, capture_info.size, MemoryPermission::ReadWrite,
+ MemoryPermission::ReadWrite, 0, Kernel::MemoryRegion::BASE, "MiiSelector Memory");
// Send the response message with the newly created SharedMemory
Service::APT::MessageParameter result;