Skip to content

Releases

A Hat in Time Android 0.2.0 (Clean-Room Lazy JIT Edition)

Choose a tag to compare

@zwaetschge zwaetschge released this 04 Dec 22:05

0.2.0 – Clean-Room On-Device Cranelift Lazy JIT Edition

  • Clean-Room Prebuilt APK (HatInTime-Android-Lazy-0.2.0.apk, 3.7 MiB, zero game code):
    • Embeds an on-device iced-x86 + Cranelift (0.138) ARM64 JIT (jit/, libhatjit.a) that compiles Binaries/Win64/HatinTimeGame.exe directly on your Android device at runtime with a persistent disk code cache (user/jit_cache/) and W^X-safe concurrent code emission.
    • Dynamic Win64 PE Import Directory (DataDirectory[1]) binding (463/463 imports bound at runtime, 0 unimplemented) while keeping the native C lzo1x_decompress_safe override (0x140001050) active.
    • Zero copyrighted game bytes or assets are shipped in this APK — install it directly and import your own legally acquired PC copy (Binaries/Win64/HatinTimeGame.exe, Engine/, HatinTimeGame/) on the device.
  • Bilingual Launcher (English + German) & JIT Cache Control:
    • Full automatic English (values/strings.xml) and German (values-de/strings.xml) localization across the launcher, SAF folder importer, and ZIP/ZIP64 unpacker.
    • Added a one-tap Clear JIT Cache button with live cache size readout and version-agnostic PC EXE import in Lazy JIT mode.
  • Verification:
    • Clean-room APK audit: 3,881,080 bytes, 0 lifted symbols, signed with matching key (versionCode: 2).
    • End-to-end Lazy JIT cold & warm-cache boot verified (15,707 cached + 4,096+ functions compiled cleanly through XAudio2, stb_vorbis, and DXVK D3D9 CreateDevice 1280×720 with 0 errors).
    • AOT static build mode remains available via ./build.sh "/path/to/A Hat in Time".

SHA-256

446c0e1683c43d826643359c9c38ebec04fe2f6610b3546153cb8f73e0d10438  HatInTime-Android-Lazy-0.2.0.apk

v0.1.0 — Initial Android arm64 static recompilation

Choose a tag to compare

@zwaetschge zwaetschge released this 26 Nov 05:53

First public source release of A Hat in Time – Android port (build it yourself).

No prebuilt APK is attached and no game files are included. Build the APK yourself from your own legally acquired PC copy using ./build.sh "/path/to/A Hat in Time".

Highlights

  • Static x86-64 → C → ARM64 recompilation of Binaries/Win64/HatinTimeGame.exe (48,095 functions across 126 generated C units, 0 lift errors; SHA-256 0197f98641c2150c5e90e5e911f4464e38527c241e50817736ca7072c0b99892).
  • Direct3D 9 SM3 backend over DXVK Native 1.9.2b (Vulkan 1.1) with persistent Adreno VkPipelineCache, lock-free dxvk-async pipeline compilation, and AArch64 C++ member-pointer ABI support.
  • Native XAudio2.7 COM mixer + stb_vorbis Ogg Vorbis audio on SDL3 (48 kHz stereo).
  • Native C lzo1x_decompress_safe override (0x140001050), verified byte-for-byte against the lifted code (~5× faster startup).
  • Physical gamepad support (XInput via SDL3), on-screen PadView, touch menu support, FileChannel ZIP/ZIP64 & SAF folder importer, and synchronous Android background/resume lifecycle.
  • Verified on AYN Odin 3 (Snapdragon 8 Elite / Adreno 830, 1280×720): steady 59.6–60.0 fps across intro, 3D title screen (incl. Seal the Deal & Nyakuza Metro), file select, and Spaceship gameplay (p50 = 16.6–17.1 ms, 0 frames ≥ 30 ms steady-state).