mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-04 12:27:54 -06:00
* Initial work on improved stubs Simulates library behaviors for when a camera is not connected. * Get* functions complete I ended up leaving some stubs behind, but most of what I didn't do seem to be internal functions called by other libraries we'd be running HLE anyway. * Finished stubs Everything I can reasonably confirm the behavior of should behave as expected, emulating the behavior of a PS4 with no camera attached. * sceCameraStart firmware check This check only applies to higher eboot firmwares, since my previous test eboots used firmware 1.00 I completely missed this. * sceCameraGetAutoExposureGain fix When option is provided and valid, size is also set to 0. * Track opened handles Extremely basic for now, if the library was ever properly implemented this could be swapped for a map of some kind instead. * Fix errors for sceCameraStart The firmware-related parameter checks come after the library opened check. * Promote sceCameraIsAttached log to info Since you don't need to initialize the library to call this function, some games will call sceCameraIsAttached before anything else. |
||
|---|---|---|
| .. | ||
| camera_error.h | ||
| camera.cpp | ||
| camera.h | ||