summaryrefslogtreecommitdiff
path: root/include/JSystem/JMessage/processor.h
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2024-08-07 13:18:30 +0300
committerGitHub <noreply@github.com>2024-08-07 03:18:30 -0700
commit106d72032c3c62fb5fd930a1044a38bf44cc1036 (patch)
tree5b7c2dcddd96f9baaa24cd6df3a7f29efc6df81c /include/JSystem/JMessage/processor.h
parent6bf2f3cc5578f3e3108df8337a462ee4c618915a (diff)
Work on d_msg_object (#2186)
Diffstat (limited to 'include/JSystem/JMessage/processor.h')
-rw-r--r--include/JSystem/JMessage/processor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/JSystem/JMessage/processor.h b/include/JSystem/JMessage/processor.h
index b636820ba7..0d55e8d00f 100644
--- a/include/JSystem/JMessage/processor.h
+++ b/include/JSystem/JMessage/processor.h
@@ -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