github Cloudiny/dkb-ps5-recomp v0.2.1
v0.2.1 — PS5 Audio/DualSense Hardening, Atomic FTP Deploy & SPIR-V Validation

2 hours ago

What's New in v0.2.1

PS5 Runtime Hardening

  • Audio resilience (ps5/dkb_audio_ps5.c): Paces sceAudioOutOutput device errors (< 0) with one 256-frame/48 kHz sleep (5333 us) to prevent spin-starvation, and closes sce_handle immediately if pthread_create fails so audio open retries cleanly.
  • DualSense recovery (ps5/dkb_input_ps5.c): Added _Static_assert(offsetof(DkbPs5PadData, connected_count) == 0x68), resets gyro/motion state on disconnect or controller replacement, retries scePadSetMotionSensorState every 500 ms if initial activation fails, and retries failed rumble stop (zero) commands every 100 ms so motors cannot stay stuck on.

Builder, Packaging & Deploy Hardening

  • Incremental FTP & atomic .part uploads (builder/ftp_deploy.py): Added eboot.bin, pic0.dds, pic1.dds, icon0.png, and shader-cache.pack to ALWAYS_UPLOAD_NAMES so equal-size rebuilt artifacts are never skipped as stale. Large monoliths (.ffpkg, romfs.bin, shader-cache.pack) now upload to <remote>.<uuid>.part, verify remote SIZE, and atomically rename into place (with cleanup tolerating PS5 ftpsrv 226 replies).
  • Isolated .ffpkg staging & symlink resolution (builder/ffpkg.py): Uses per-build tempfile.TemporaryDirectory on the output filesystem and resolves symlinks strictly before hardlinking/copying.
  • Extraction cache integrity (builder/game_source.py): Records and validates .extract_stamp.json inventories before reusing cached extractions, rejects 0-byte required exefs/ files, and blocks symlinks escaping the extraction root.
  • SPIR-V validation before publish (scripts/prepare_ps5_shaders.py): Validates SPIR-V magic, 4-byte alignment, instruction boundaries, OpEntryPoint, and balanced OpFunction..OpFunctionEnd before atomically replacing shader-cache.pack.
  • PyQt6 closeEvent guard (builder/gui.py): Prevents closing the builder window while a background QThread build/deploy worker is active or has pending results.

Standalone AppImage

  • PS5DkbBuilder-v0.2.1-linux-x64.AppImage (147,102,200 B, includes PS5 SDK + UFS2Tool.dll)
  • SHA-256: 792c2487b445eadb2060ac5bf75b3d4c7441cbd535b1a66a536f66d0595948e5

Don't miss a new dkb-ps5-recomp release

NewReleases is sending notifications on new releases.