mirror of https://github.com/AxioDL/metaforce.git
CRasterFont: Extend CFontInfo buffer to 64 characters
GM8E v0 seems to be using at least a buffer 64 characters in size, not 40.
This commit is contained in:
parent
296cb3df2b
commit
f7962cb3f7
|
@ -80,20 +80,16 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
class CFontInfo {
|
class CFontInfo {
|
||||||
bool x0_ = false;
|
[[maybe_unused]] bool x0_ = false;
|
||||||
bool x1_ = false;
|
[[maybe_unused]] bool x1_ = false;
|
||||||
s32 x4_ = 0;
|
[[maybe_unused]] s32 x4_ = 0;
|
||||||
s32 x8_fontSize = 0;
|
[[maybe_unused]] s32 x8_fontSize = 0;
|
||||||
char xc_name[40];
|
char xc_name[64] = "";
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CFontInfo() = default;
|
CFontInfo() = default;
|
||||||
CFontInfo(bool a, bool b, s32 c, s32 fontSize, const char* name) : x0_(a), x1_(b), x4_(c), x8_fontSize(fontSize) {
|
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);
|
std::strcpy(xc_name, name);
|
||||||
(void)x0_;
|
|
||||||
(void)x1_;
|
|
||||||
(void)x4_;
|
|
||||||
(void)x8_fontSize;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue