From cefecb12b711b9ebd610eee11e0f2a854b5dec70 Mon Sep 17 00:00:00 2001 From: shenweip <1037567878@qq.com> Date: Mon, 16 Mar 2020 09:36:23 +0800 Subject: [PATCH] Buildfix. Buildfix2. --- Core/HLE/sceFont.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Core/HLE/sceFont.cpp b/Core/HLE/sceFont.cpp index e47f7c6667..7ba7b31246 100644 --- a/Core/HLE/sceFont.cpp +++ b/Core/HLE/sceFont.cpp @@ -389,10 +389,10 @@ private: u32 fontLibID_; }; -class PostOpenAllocCallback : public Action { +class PostOpenAllocCallback : public PSPAction { public: PostOpenAllocCallback() {} - static Action *Create() { return new PostOpenAllocCallback(); } + static PSPAction *Create() { return new PostOpenAllocCallback(); } void DoState(PointerWrap &p) override { auto s = p.Section("PostOpenAllocCallback", 1); if (!s) @@ -412,10 +412,10 @@ private: int fontIndex_; }; -class PostCharInfoAllocCallback : public Action { +class PostCharInfoAllocCallback : public PSPAction { public: PostCharInfoAllocCallback() {} - static Action *Create() { return new PostCharInfoAllocCallback(); } + static PSPAction *Create() { return new PostCharInfoAllocCallback(); } void DoState(PointerWrap &p) override { auto s = p.Section("PostCharInfoAllocCallback", 1); if (!s) @@ -430,10 +430,10 @@ private: u32 fontLibID_; }; -class PostCharInfoFreeCallback : public Action { +class PostCharInfoFreeCallback : public PSPAction { public: PostCharInfoFreeCallback() {} - static Action *Create() { return new PostCharInfoFreeCallback(); } + static PSPAction *Create() { return new PostCharInfoFreeCallback(); } void DoState(PointerWrap &p) override { auto s = p.Section("PostCharInfoFreeCallback", 1); if (!s) @@ -684,7 +684,8 @@ public: u32 GetOpenAllocatedAddress(int index) const { if(index < numFonts()) - return openAllocatedAddresses_[index]; + return openAllocatedAddresses_[index]; + return 0; } void SetOpenAllocatedAddress(int index, u32 addr) {