mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 08:38:43 +00:00
Libraries: libSceVrTracker stubs (#3462)
* libSceVrTracker stubs, structs, enums, and errors * sceVrTrackerQueryMemory * Clang and slight struct cleanup * Implement sceVrTrackerInit * Store memory pointers and sizes Mainly for future developers, since I doubt these memory areas will be particularly useful for these stubs. * sceVrTrackerRegisterDevice I haven't really identified the difference between the two register device functions, but I do know that they both internally call the internal function with slightly different parameters. * sceVrTrackerUnregisterDevice Also changes Hmd and Move handles to be values closer to what real hardware returns, since this function seemingly relies on handles being different for all these device types. * sceVrTrackerTerm * Additional error checks in sceVrTrackerRegisterDeviceInternal * sceVrTrackerGetTime * sceVrTrackerRecalibrate Recalibration succeeds on real hardware (at least for some device types), so I've left the stub log intact. * Update vr_tracker.cpp * sceVrTrackerSetDurationUntilStatusNotTracking stub Only handled the error checks, so I left the stub log intact. * sceVrTrackerGpu* functions Most of these can't succeed without a camera attached.
This commit is contained in:
@@ -60,9 +60,10 @@ s32 PS4_SYSV_ABI sceHmdOpen(Libraries::UserService::OrbisUserServiceUserId user_
|
||||
return ORBIS_HMD_ERROR_PARAMETER_INVALID;
|
||||
}
|
||||
|
||||
// Return positive value representing handle
|
||||
// Return positive value representing handle.
|
||||
// Internal libSceVrTracker logic requires this handle to be different from other devices.
|
||||
g_user_id = user_id;
|
||||
g_internal_handle = 1;
|
||||
g_internal_handle = 0xf000000;
|
||||
return g_internal_handle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user