mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-12 11:17:56 -05:00
Kernel: Capture SharedMemory attributes at creation, not when mapping
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user