Compare commits

...

4 Commits

Author SHA1 Message Date
coah
12bdbae0a6 Match remaining focus object helpers 2026-09-21 22:27:18 +00:00
coah
df19d00c38 Merge pull request #34 from coah80/codex/channelobj-measured-20260921
Match ChannelObj bindNewAnm
2026-09-21 16:54:19 -05:00
coah
4af87bd899 Merge ODH flash buffer match
Merge validated exact ODH bit-buffer matching
2026-09-21 16:53:58 -05:00
coah
39370e3cbd Match ChannelObj bindNewAnm 2026-09-21 21:53:36 +00:00
2 changed files with 14 additions and 12 deletions

View File

@@ -1100,16 +1100,15 @@ namespace ipl {
}
for (int i = 0; i < RBR_ATTACHMENT_MAX; i++) {
RBRAttachment* attach = &recordHdr->attach[i];
switch (attach->type) {
switch (recordHdr->attach[i].type) {
case RBRAttachmentType_MsgBoard: {
make_lettertex(attach);
init_chanjump(attach);
init_sound(attach);
make_lettertex(&recordHdr->attach[i]);
init_chanjump(&recordHdr->attach[i]);
init_sound(&recordHdr->attach[i]);
break;
}
case RBRAttachmentType_Picture: {
make_picture(attach);
make_picture(&recordHdr->attach[i]);
break;
}
default: {
@@ -1487,11 +1486,11 @@ namespace ipl {
}
nw4r::lyt::Pane* pane = mpLayout->FindPaneByName("T_Letter");
nw4r::lyt::TextBox* textPane = NULL;
const nw4r::ut::detail::RuntimeTypeInfo* paneType = pane->GetRuntimeTypeInfo();
const nw4r::ut::detail::RuntimeTypeInfo* textBoxType = &nw4r::lyt::TextBox::typeInfo;
if (paneType->IsDerivedFrom(textBoxType)) {
nw4r::lyt::TextBox* textPane;
if (pane->GetRuntimeTypeInfo()->IsDerivedFrom(&nw4r::lyt::TextBox::typeInfo)) {
textPane = static_cast<nw4r::lyt::TextBox*>(pane);
} else {
textPane = NULL;
}
if (System::getChannelManager()->isEnableUrlJump() && mpBoardObj->mLetterType != BoardObject::TYPE_PLAYTIME) {

View File

@@ -41,6 +41,7 @@ namespace ipl {
extern "C" char lbl_816969DC[] = "Calc";
extern "C" char lbl_816969E1[] = "Create";
#pragma pack(1)
struct ModuleData {
const char* langGroupLookup[SC_PRODUCT_AREA_MAX][16];
char resolved[40];
@@ -50,6 +51,7 @@ namespace ipl {
char iconBrlan[11];
char iconWholeBrlan[17];
};
#pragma pack()
extern "C" ModuleData lbl_8164E328 = {
{
@@ -1195,8 +1197,9 @@ namespace ipl {
}
void ChannelObj::bindNewAnm(layout::Object* layout) {
nw4r::lyt::Group* group;
char grpName[20];
char** lookup;
nw4r::lyt::Group* group;
// Look for "New" group first.
// If that doesn't exist, look for "New_%d" group based on the System language.
@@ -1212,7 +1215,7 @@ namespace ipl {
if (group != NULL) {
mpNwc24NewGroup = group;
} else {
char** lookup = (char**)lbl_8164E328.langGroupLookup[System::getRegion()];
lookup = (char**)lbl_8164E328.langGroupLookup[System::getRegion()];
for (int i = 0; lookup[i] != NULL; i++) {
sprintf(grpName, "New_%s", lookup[i]);