Skip to content

feat(recipes): add KIOU 1.5.0 target and build-22 offsets - #16

Merged
tkgstrator merged 2 commits into
masterfrom
feat/kiou-1-5-0-target
Oct 19, 2026
Merged

tkgstrator merged 2 commits into
masterfrom
feat/kiou-1-5-0-target

Conversation

@tkgstrator

Copy link
Copy Markdown
Contributor

What

  • Add the KIOU 1.5.0 (CFBundleVersion 22) target: recipes/v1_5_0.py, rva/kiou_rva_1_5_0.h, and the build-22 branch in KIOUHook.h.
  • SearchMulti, SearchMultiPV, SearchMultiWithPV (removed in 1.5.0) and EnsureInitializedLocked stay as placeholder rows (site = None) so every later hook keeps its cave index.
  • Switch the field offsets that moved in 1.5.0 under KIOU_HOOK_TARGET_BUILD >= 22 (ShogiMatchingPlayerStatus, the RunLoginSequenceAsync state machine, SelfUserProfileStatus). Older builds keep their values.
  • In build 22, ShogiMatchingPlayerStatus.userId_ became openUserId_, so the self check compares against the saved openId (new KIOUActiveAccountOpenId()).
  • tools/gen_rva_header.py gains per-version anchor overrides so the 1.5.0 header regenerates with the plain command; the 1.0.1 / 1.0.2 / 1.1.0 headers are unchanged.
  • Fix: the character id was taken from the skin id (e.g. 10001), which does not exist as a character. It is now derived from the skin table (10001 -> 1). This made the client return to the title screen with error 50001 on login and on match start, in Hook/Common.m and Hook/MatchingPlayer.m.

Why

KIOU 1.5.0 moves every RVA and several field offsets, so KiouEditor cannot hook it without this catalog.

Test plan

  • python3 -m tools.check_recipes passes.
  • tools.verify_sites for 1.5.0: all 52 sites match the IPA prologues.
  • make chinlan for 1.5.0 / 1.1.0 / 1.0.2 and make (JB) for 1.5.0 build without warnings.
  • On an iPhone (iOS 15.8.3, TrollStore): the patched 1.5.0 IPA starts, logs in, and plays a CPU match without the 50001 error.
  • Not verified on a device: KIF export after a finished game, and the CPU-side openUserId_ value.

🤖 Generated with Claude Code

tkgstrator and others added 2 commits October 18, 2026 22:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tkgstrator
tkgstrator merged commit 6cff5a7 into master Oct 19, 2026
4 checks passed
@tkgstrator
tkgstrator deleted the feat/kiou-1-5-0-target branch October 19, 2026 00:40
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