From b00f61b945c5b5dbc37d2454b3e1b34cc973ff99 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:44:40 -0500 Subject: [PATCH 1/2] sc: rename SC_BT_DEV_INFO unused gaps to pad_* unk_0x14 / unk_0x15 / unk_0x30 sit between devName and linkKey (and after linkKey) with no named field readers in Matching units; mark them as pads. --- libs/RVL_SDK/include/private/sc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/RVL_SDK/include/private/sc.h b/libs/RVL_SDK/include/private/sc.h index 19ac4d9e..1220266e 100644 --- a/libs/RVL_SDK/include/private/sc.h +++ b/libs/RVL_SDK/include/private/sc.h @@ -152,10 +152,10 @@ u32 __SCGetConfBufSize(); typedef struct SC_BT_DEV_INFO { u8 devName[20]; // 0x00 - u8 unk_0x14; - u8 unk_0x15[0xB]; + u8 pad_0x14; // 0x14 + u8 pad_0x15[0xB]; // 0x15 LINK_KEY linkKey; // 0x20 - u8 unk_0x30[0x10]; + u8 pad_0x30[0x10]; // 0x30 } SC_BT_DEV_INFO; typedef struct SCBtDeviceInfo { -- 2.49.1 From 0a7baea67ad3747224dc6846bd06d5c0d5dfc923 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:44:40 -0500 Subject: [PATCH 2/2] cleanup(eZiText): align ziSwParam with ZiCandidateOptions (#932) zi8getSW receives ZiCandidateOptions* as ziPtr; rename the local view fields to match (keep ziS32 maxCount for signed compares). --- .../RVLMiddleware/eZiText/src/clib/zi8getSW.c | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8getSW.c b/libs/RVLMiddleware/eZiText/src/clib/zi8getSW.c index 4c8e25c6..5e082924 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8getSW.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8getSW.c @@ -8,11 +8,15 @@ extern ziU8 Zi8SyllablesROMdata(ziWChar* keys, ziU8 count, ziU8 lang, ziWChar* o ziU16 a, ziU8 b, ziU8* cntOut, ziU8 c ZI_NEED_WORK); typedef struct _ziSwParam { - ziU8 flag; - ziU8 unk_0x01[0xB]; - ziS32 count; - ziU16 cap; - ziU8 unk_0x12[2]; + ziU8 countOnly; // 0x00 - same layout as ZiCandidateOptions + ziU8 maxWordLength; // 0x01 + ziU8 lookupMode; // 0x02 + ziU8 suffixOnly; // 0x03 + ziU8 controls[8]; // 0x04 + ziS32 maxCount; // 0x0C - signed view of ZiCandidateOptions.maxCount + ziU16 capacity; // 0x10 + ziU8 minWordLength; // 0x12 + ziU8 flags; // 0x13 } ziSwParam; ziU32 Zi8GetSyllablesCandidates(ziGetParam* param, ziSwParam* sw ZI_NEED_WORK) { @@ -54,16 +58,16 @@ ziU32 Zi8GetSyllablesCandidates(ziGetParam* param, ziSwParam* sw ZI_NEED_WORK) { goto end; } - if (sw->flag != 0 || (param->getOptions & 0xFD) != 0x81) { + if (sw->countOnly != 0 || (param->getOptions & 0xFD) != 0x81) { out = buf; rem = 0x40; } else { out = (ziWChar*)param->candidates; - rem = sw->cap - 1; + rem = sw->capacity - 1; } if ((param->getOptions & 0xFD) == 0x80) { u28 = (ziU8*)param->candidates; - rem = sw->cap - 1; + rem = sw->capacity - 1; } if (rem <= param->elementCount) { @@ -94,8 +98,8 @@ ziU32 Zi8GetSyllablesCandidates(ziGetParam* param, ziSwParam* sw ZI_NEED_WORK) { firstCand--; goto L5dc; } - if (sw->flag != 0) { - if (++count >= sw->count) goto end; + if (sw->countOnly != 0) { + if (++count >= sw->maxCount) goto end; goto L5dc; } @@ -147,8 +151,8 @@ L464b: firstCand--; goto L560; } - if (sw->flag != 0) { - if (++count >= sw->count) goto end; + if (sw->countOnly != 0) { + if (++count >= sw->maxCount) goto end; goto L560; } if (u28 != 0) { @@ -202,7 +206,7 @@ dec: goto L560; end: - if (sw->flag != 0) { + if (sw->countOnly != 0) { param->letters = 0; } else { param->letters = (ziU8)count; -- 2.49.1