Files
d2r-mobile/dm/ios/tests/test_skill_aim_front.py
T
shenleiandClaude Opus 5.5 4d91f80bae Android port (Adreno): Vulkan backend, GameActivity app, touch HUD, lifecycle, minimap quest goals
- host/android: Vulkan replay backend (nvn_vk.c) with pipeline/descriptor caching, ADPF,
  AChoreographer present link; Linux compat layer; Makefile.android (headless dmhost + APK lib)
- android/app: GameActivity shell without Gradle (build_apk.sh), AAudio output, touch HUD port
  (touch_app.c + TouchOverlay.java, three layers: body / joystick / minimap goals),
  lifecycle save-on-background like iOS, art_from_ipa.py for touch / HUD / mapgoal art
- touch: shared touch controls moved from ios/Sources to dm/touch
- patch_nso.py Android ruleset, dmsh_vk.py shader pack, DM_TOUCH_PRODUCT defaults
- hle_audio: AAudio resume waits through STARTING and reopens once on failure
- .gitignore: local resources/ (original game data) never committed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:55:05 +09:00

18 lines
1.3 KiB
Python

"""最小真实源接线约束;不声称UIImage/物理输入/原施法效果。 | Minimal real-source wiring constraints; makes no claim about UIImage / physical input / the original cast effect."""
from pathlib import Path
import argparse,hashlib,json
p=argparse.ArgumentParser();p.add_argument('--ios-root',type=Path,default=Path(__file__).resolve().parents[1]);args=p.parse_args()
ios=args.ios_root
f=(ios/'Sources/front_ios.m').read_text()
assert 'dm_input_set(_controls.buttons,_controls.lx,_controls.ly,_controls.rx,_controls.ry)' in f, 'front still drops right axis'
assert f.count('rx=%d ry=%d')>=2, 'both UITouch and output must report actual right axes'
assert f.count('_controls.lx,_controls.ly,_controls.rx,_controls.ry')>=3
assert 'dm_tc_set_navigation_mode(&_controls,n)' in f, 'navigation must suppress combat aim'
m=(ios/'Sources/DmTouchOverlay.m').read_text()
assert '@"touch_native_binding_v5"' in m
assert 's->map_cancel_active' in m and '@"right_aim"' in m
d=ios/'docs/touch_layout_spec_native_binding_v5.json'
assert json.loads(d.read_text())['profile_id']=='touch_native_binding_v5'
assert hashlib.sha256(d.read_bytes()).hexdigest() in (ios.parent/'touch'/'dm_touch_native_art.c').read_text()
print('PASS v5 source seam: full five-axis publish; real rx/ry receipts; navigation/cancel metadata; v5 spec SHA; runtime/phone UNRUN')