Compare commits

...

1 Commits

Author SHA1 Message Date
coah
b38c92f38c iplAddress 91/101, tiZiString 26/29 (worker 5e1635f3) 2026-10-01 10:37:48 +00:00
3 changed files with 14 additions and 12 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.32% | 86.90% | 60.61% | 91.12% |
| 99.32% | 86.91% | 60.61% | 91.12% |
units 911/1027 complete, functions 12183/12563 matched.
units 911/1027 complete, functions 12185/12563 matched.
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
<!-- progress:end -->

View File

@@ -557,10 +557,11 @@ void WithZi::setCurrentWord(const wchar_t* word) {
LatestWord[1] = 0;
return;
}
mbContextChanged = 1;
wchar_t* currentWord;
const wchar_t* source;
u32 length;
s32 copied;
mbContextChanged = 1;
length = 0;
currentWord = reinterpret_cast<wchar_t*>(LatestWord);
for (; *currentWord != 0 && *currentWord != 0x20;
@@ -571,14 +572,10 @@ void WithZi::setCurrentWord(const wchar_t* word) {
}
}
copied = 0;
const wchar_t* source = word;
u32 destinationOffset = length;
source = word;
for (; *source != 0 && length < 0x3f;) {
wchar_t character = word[copied];
++length;
LatestWord[length++] = word[copied++];
++source;
++copied;
LatestWord[destinationOffset++] = character;
}
LatestWord[length] = 0;
mCurrentWordLength = copied;

View File

@@ -536,11 +536,16 @@ namespace ipl {
}
}
static inline nw4r::math::_VEC2 negativeOffset(const nw4r::math::_VEC2& value) {
f32 negativeY = -value.y;
f32 negativeX = -value.x;
nw4r::math::_VEC2 result = {negativeX, negativeY};
return result;
}
void Address::stt_cover_backward() {
if (!mpLayout->getAnim(4)->isPlaying()) {
math::VEC2 offset;
offset.x = -sPageOffset.x;
offset.y = -sPageOffset.y;
math::VEC2 offset = negativeOffset(sPageOffset);
add_translate(mpLayout->FindPaneByName("N_note_base"), offset);
mbCover = true;
mNextPageNum++;