Kernel: Capture SharedMemory attributes at creation, not when mapping
This commit is contained in:
parent
088f6ae2c6
commit
c96f22490a
7 changed files with 51 additions and 28 deletions
|
@ -304,7 +304,9 @@ void Init() {
|
|||
file.ReadBytes(shared_font.data(), (size_t)file.GetSize());
|
||||
|
||||
// Create shared font memory object
|
||||
shared_font_mem = Kernel::SharedMemory::Create("APT_U:shared_font_mem");
|
||||
using Kernel::MemoryPermission;
|
||||
shared_font_mem = Kernel::SharedMemory::Create(3 * 1024 * 1024, // 3MB
|
||||
MemoryPermission::ReadWrite, MemoryPermission::Read, "APT_U:shared_font_mem");
|
||||
} else {
|
||||
LOG_WARNING(Service_APT, "Unable to load shared font: %s", filepath.c_str());
|
||||
shared_font_mem = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue