From ba1f862c85dc5215ded19ef602143f86aa1bd818 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 22 Feb 2014 13:00:03 -0800 Subject: [PATCH] Allocate the right amount of font memory. But it should be in multiple blocks... --- Core/HLE/sceFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceFont.cpp b/Core/HLE/sceFont.cpp index d6e5582751..dfe7d96f88 100644 --- a/Core/HLE/sceFont.cpp +++ b/Core/HLE/sceFont.cpp @@ -333,8 +333,8 @@ public: params_.numFonts = 9; } - // We use the same strange scheme that JPCSP uses. - u32 allocSize = 4 + 4 * params_.numFonts; + // Technically, this should be four separate allocations. + u32 allocSize = 0x4C + params_.numFonts * 0x4C + params_.numFonts * 0x230 + (u32)internalFonts.size() * 0xA8; PostAllocCallback *action = (PostAllocCallback *) __KernelCreateAction(actionPostAllocCallback); action->SetFontLib(GetListID());