Work on d_msg_object (#2186)

This commit is contained in:
hatal175
2024-08-07 13:18:30 +03:00
committed by GitHub
parent 6bf2f3cc55
commit 106d72032c
136 changed files with 2550 additions and 3847 deletions
+11
View File
@@ -28,6 +28,10 @@ struct TControl {
(TProcessor*)pRenderingProcessor_;
}
int setMessageCode(u32 code) {
return setMessageCode(code >> 16, code);
}
int setMessageCode_inReset_(TProcessor* pProcessor, u16 param_1, u16 param_2) {
if (!setMessageCode_inSequence_(pProcessor, param_1, param_2)) {
return 0;
@@ -57,6 +61,13 @@ struct TControl {
pResourceCache_ = NULL;
}
void render_synchronize() {
if (isReady_render_()) {
field_0x20 = pszText_update_current_;
oStack_renderingProcessor_ = pRenderingProcessor_->oStack_;
}
}
/* 0x04 */ TSequenceProcessor* pSequenceProcessor_;
/* 0x08 */ TRenderingProcessor* pRenderingProcessor_;
/* 0x0C */ u16 messageCode_;
+9
View File
@@ -2,6 +2,7 @@
#define JMESSAGE_PROCESSOR_H
#include "JSystem/JMessage/resource.h"
#include "algorithm.h"
namespace JMessage {
struct TResource;
@@ -63,6 +64,14 @@ struct TProcessor {
void pop() { upsz_--; }
TStack_& operator=(const TStack_& other) {
upsz_ = other.upsz_;
char** start = (char**)other.stack;
char** end = (char**)(other.stack + other.upsz_);
std::copy(start, end, stack);
return *this;
}
/* 0x0 */ u32 upsz_; // stack size
/* 0x4 */ const char* stack[4];
}; // Size: 0x14