JMessage control OK

This commit is contained in:
LagoLunatic
2024-03-13 16:34:05 -04:00
parent 4298f20af6
commit 786652e0f5
6 changed files with 32 additions and 19 deletions
+12 -2
View File
@@ -52,6 +52,17 @@ struct TControl {
const char* getMessageData(u16, u16) const;
void reset_();
void getMessageCode() const {}
void getMessageData(u32) const {}
void getMessageEntry(u32) const {}
void getMessageEntry(u16, u16) const {}
void getMessageGroupID() const {}
void getMessageIndex() const {}
void on_isLeadByte(int) {}
void on_word(u32) {}
void setMessageIndex(u16) {}
void setResourceContainer(const JMessage::TResourceContainer*) {}
/* 0x04 */ TResourceContainer* mResourceContainer;
/* 0x08 */ mutable TResource* mResource;
/* 0x0C */ TSequenceProcessor* mBaseProcSeq;
@@ -62,8 +73,7 @@ struct TControl {
/* 0x1C */ const char* mMessageDataStart;
/* 0x20 */ const char* mMessageDataCurrent;
/* 0x24 */ const char* mCurrentText;
/* 0x28 */ void* field_0x28;
/* 0x2C */ TProcessor::TStack_ mRenderStack;
/* 0x28 */ TProcessor::TStack_ mRenderStack;
};
}; // namespace JMessage
+2 -3
View File
@@ -37,8 +37,8 @@ public:
inline const char* top() const { return mStack[mNum - 2]; }
inline bool empty() const { return mNum == 0; }
/* 0x00 */ const char* mStack[3];
/* 0x0C */ u32 mNum;
/* 0x00 */ const char* mStack[4];
/* 0x10 */ u32 mNum;
};
// XXX: None of this shows up in the debug map. Is this TStatusData?
@@ -94,7 +94,6 @@ public:
/* 0x00 */ /* vtable */
/* 0x04 */ TControl* mControl;
/* 0x08 */ const char* mCurrent;
/* 0x0C */ void* field_0x0C;
/* 0x0C */ TStack_ mStack;
/* 0x20 */ TProcess mProcess;
};
+4 -1
View File
@@ -57,8 +57,11 @@ namespace JMessage {
void SetEncoding(u8);
bool IsEncodingSettable(u8 encoding) const {
return mEncoding == encoding || encoding == 0;
return mEncoding == encoding || mEncoding == 0;
}
bool IsLeadByte(int param_0) const { return mIsLeadByteFunc(param_0); }
void Get_groupID(u16) const {}
private:
void SetEncoding_(u8);