Continue with d_tag_processor

This commit is contained in:
robojumper
2024-11-07 17:36:40 +01:00
parent 594bc67d67
commit 6ff32a2957
4 changed files with 337 additions and 21 deletions
+14
View File
@@ -28,6 +28,10 @@ public:
nw4r::ut::Operation ProcessTags(nw4r::ut::Rect *rect, u16 ch, nw4r::ut::PrintContext<wchar_t> *ctx);
f32 fn_800B8560(s32);
f32 fn_800B85C0(s32);
void somethingWithScrapperAndMusic(wchar_t* src);
void changeScale(nw4r::ut::Rect *rect, nw4r::ut::PrintContext<wchar_t> *ctx, bool);
wchar_t *writeItem(wchar_t *dest, wchar_t *src, s32 *, s32);
wchar_t *writeStringArg(wchar_t *dest, wchar_t *src, s32 *, s32);
@@ -161,6 +165,16 @@ public:
}
private:
wchar_t *getTmpBuffer() {
return field_0x008[field_0x90E - 1];
}
void onWriteTmpBuffer() {
if (field_0x90E - 1 < 4) {
field_0x808[field_0x90E - 1]++;
}
}
/* 0x004 */ dTextBox_c *field_0x004;
/* 0x008 */ wchar_t field_0x008[4][256];
/* 0x808 */ wchar_t field_0x808[4];
+12
View File
@@ -38,6 +38,14 @@ public:
inline static f32 getField0x760() {
if (sInstance != nullptr) {
return sInstance->field_0x760;
} else {
return 0.0f;
}
}
inline static f32 getField0x764() {
if (sInstance != nullptr) {
return sInstance->field_0x764;
}
return 0.0f;
}
@@ -56,6 +64,10 @@ public:
return 0.0f;
}
inline static f32 getField0x788() {
return sInstance->field_0x76C;
}
inline static f32 getFn800B1F70() {
if (sInstance != nullptr) {
return sInstance->fn_800B1F70();