From f7962cb3f760cbd584f6bba1bc4c36572ddbd20a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 6 Apr 2020 06:59:19 -0400 Subject: [PATCH] CRasterFont: Extend CFontInfo buffer to 64 characters GM8E v0 seems to be using at least a buffer 64 characters in size, not 40. --- Runtime/GuiSys/CRasterFont.hpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Runtime/GuiSys/CRasterFont.hpp b/Runtime/GuiSys/CRasterFont.hpp index cbbaa1552..0b582792f 100644 --- a/Runtime/GuiSys/CRasterFont.hpp +++ b/Runtime/GuiSys/CRasterFont.hpp @@ -80,20 +80,16 @@ public: }; class CFontInfo { - bool x0_ = false; - bool x1_ = false; - s32 x4_ = 0; - s32 x8_fontSize = 0; - char xc_name[40]; + [[maybe_unused]] bool x0_ = false; + [[maybe_unused]] bool x1_ = false; + [[maybe_unused]] s32 x4_ = 0; + [[maybe_unused]] s32 x8_fontSize = 0; + char xc_name[64] = ""; public: CFontInfo() = default; CFontInfo(bool a, bool b, s32 c, s32 fontSize, const char* name) : x0_(a), x1_(b), x4_(c), x8_fontSize(fontSize) { - strcpy(xc_name, name); - (void)x0_; - (void)x1_; - (void)x4_; - (void)x8_fontSize; + std::strcpy(xc_name, name); } };