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

Function cellCameraIsOpen

ps3fw/cellCamera.cpp:859–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859s32 cellCameraIsOpen(s32 dev_num)
860{
861 cellCamera.trace("cellCameraIsOpen(dev_num=%d)", dev_num);
862
863 if (g_cfg.io.camera == camera_handler::null)
864 {
865 return false;
866 }
867
868 auto& g_camera = g_fxo->get<camera_thread>();
869
870 if (!g_camera.init)
871 {
872 return false;
873 }
874
875 if (!check_dev_num(dev_num))
876 {
877 return false;
878 }
879
880 std::lock_guard lock(g_camera.mutex);
881
882 return g_camera.is_open.load();
883}
884
885s32 cellCameraIsStarted(s32 dev_num)
886{

Callers

nothing calls this directly

Calls 2

check_dev_numFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected