mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
BunnyFl ran firmware 13.42's libSceHmd exports under an emulator. The distortion and wide-near correction queries look the handle up before checking initialization: a handle other than the one sceHmdOpen stored, which stays 0 without a headset, returns HANDLE_INVALID even before sceHmdInitialize. sceHmdGet2dVrCommand checks its arguments first: PARAMETER_NULL for a null descriptor or command buffer or a null pointer at descriptor offset 0, 8 or 0x20, and PARAMETER_INVALID for a non-zero field at 0x34 or 0x38. The queries and their sceHmdDistortion* aliases now answer in that order. What handle 0 gets after initialization isn't measured, so it throws NotImplemented_nid_no_patch instead of returning HANDLE_INVALID.