diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2023-12-28 22:45:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-28 22:45:53 +0200 |
| commit | 402666242bcd3d14ecf710bebd4f74a566db7bbb (patch) | |
| tree | 1d97282f86ef1b8c25dbe4d292a74ffe0a4d8964 /include/JSystem | |
| parent | 3b7c793ac9089b6e4d5d8357f62df4d7b9da7500 (diff) | |
work on d_msg_class and JUTResFont (#2015)
* JUTResFont - Set symbols on
* Work on d_msg_class
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/JMessage/processor.h | 14 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTFont.h | 12 |
2 files changed, 23 insertions, 3 deletions
diff --git a/include/JSystem/JMessage/processor.h b/include/JSystem/JMessage/processor.h index 20678170a4..a01572c19c 100644 --- a/include/JSystem/JMessage/processor.h +++ b/include/JSystem/JMessage/processor.h @@ -150,6 +150,12 @@ struct TProcessor { return 1; } + int setBegin_messageEntryText(const TProcessor* processor, const void* entry, + const char* param_2) { + setBegin_messageEntryText(processor->getResourceCache(), entry, param_2); + return 1; + } + void* getMessageEntry_messageCode(u16 messageCode, u16 messageIndex) const { const TResource* pResource = getResource_groupID(messageCode); @@ -299,6 +305,14 @@ struct TRenderingProcessor : public TProcessor { /* 802A8BA4 */ virtual void do_begin_(void const*, char const*); /* 802A8BA8 */ virtual void do_end_(); /* 802A8BAC */ virtual void do_tag_(u32, void const*, u32); + + bool process_messageEntryText(TProcessor *param_0,void const*param_1,const char *param_2) { + int rv = TProcessor::setBegin_messageEntryText(param_0, param_1, param_2); + if (rv != 0) { + process(NULL); + } + return rv != 0; + } }; }; // namespace JMessage diff --git a/include/JSystem/JUtility/JUTFont.h b/include/JSystem/JUtility/JUTFont.h index e56c34cfe3..55bd5d71fa 100644 --- a/include/JSystem/JUtility/JUTFont.h +++ b/include/JSystem/JUtility/JUTFont.h @@ -83,9 +83,15 @@ public: /* 0x3C */ virtual ResFONT* getResFont() const = 0; /* 0x40 */ virtual bool isLeadByte(int a1) const = 0; - static bool isLeadByte_1Byte(int b); - static bool isLeadByte_2Byte(int b); - static bool isLeadByte_ShiftJIS(int b); + static bool isLeadByte_1Byte(int b) { + return false; + } + static bool isLeadByte_2Byte(int b) { + return true; + } + static bool isLeadByte_ShiftJIS(int b) { + return (b >= 0x81 && b <= 0x9f) || (b >= 0xe0 && b <= 0xfc); + } void initialize_state(); void setCharColor(JUtility::TColor col1); |
