MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / cellCameraIsAvailable

Function cellCameraIsAvailable

ps3fw/cellCamera.cpp:789–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789s32 cellCameraIsAvailable(s32 dev_num)
790{
791 cellCamera.trace("cellCameraIsAvailable(dev_num=%d)", dev_num);
792
793 if (g_cfg.io.camera == camera_handler::null)
794 {
795 return false;
796 }
797
798 vm::var<s32> type;
799
800 if (cellCameraGetType(dev_num, type) != CELL_OK || *type == CELL_CAMERA_TYPE_UNKNOWN)
801 {
802 return false;
803 }
804
805 if (*type > CELL_CAMERA_TYPE_UNKNOWN || *type <= CELL_CAMERA_USBVIDEOCLASS)
806 {
807 // TODO: checks CELL_CAMERA_DEVICESPEED attribute
808 }
809
810 return true;
811}
812
813s32 cellCameraIsAttached(s32 dev_num)
814{

Callers

nothing calls this directly

Calls 1

cellCameraGetTypeFunction · 0.85

Tested by

no test coverage detected