Skip to content

fix(hook): correct build 15 offsets and capture open id - #17

Merged
tkgstrator merged 1 commit into
masterfrom
fix/build15-offsets-open-id
Oct 19, 2026
Merged

tkgstrator merged 1 commit into
masterfrom
fix/build15-offsets-open-id

Conversation

@tkgstrator

Copy link
Copy Markdown
Contributor

What

  • Fix two build 15 (KIOU 1.1.0) offsets that were still the 1.0.x values: ShogiMatchingPlayerStatus.enableBeginnerSupport_ 0x68 -> 0x70 and SelfUserProfileStatus.rankList_ 0x28 -> 0x30. Builds 11 / 12 keep 0x68 / 0x28; build 22 is unchanged.
  • Build 22: read LoginReply.openUserId_ (0x38) at login and save it as the account's openId, so the self check in MatchingPlayer works before the profile is fetched.
  • Build 22: compare the player's open id after normalising (strip -, upper-case) so a format difference cannot make the self check miss.

Why

Build 15 was reading the wrong bytes for the beginner-support flag and the rank list. In 1.5.0 the id in ShogiMatchingPlayerStatus became openUserId_, which was only saved after the first profile fetch.

Test plan

  • make chinlan for 1.5.0 / 1.1.0 / 1.0.2 builds with no warnings.
  • Macro expansion for builds 11 / 12 / 15 / 22 gives 0x68 / 0x68 / 0x70 / 0x90 (beginner support) and 0x28 / 0x28 / 0x30 / 0x30 (rank list).
  • On an iPhone (iOS 15.8.3, KIOU 1.5.0): the log shows loginReply openUserId=7272-... right after login, matching the saved open id, and a CPU match applies the self rewrite (enableBeginnerSupport 0->1).
  • Not verified on a device: build 15 (1.1.0) behaviour after the offset change.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tkgstrator
tkgstrator merged commit 91269cf into master Oct 19, 2026
4 checks passed
@tkgstrator
tkgstrator deleted the fix/build15-offsets-open-id branch October 19, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant