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

Function cellCameraSetNotifyEventQueue2

ps3fw/cellCamera.cpp:1551–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549}
1550
1551error_code cellCameraSetNotifyEventQueue2(u64 key, u64 source, u64 flag)
1552{
1553 cellCamera.notice("cellCameraSetNotifyEventQueue2(key=0x%x, source=%d, flag=%d)", key, source, flag);
1554
1555 auto& g_camera = g_fxo->get<camera_thread>();
1556
1557 if (!g_camera.init)
1558 {
1559 return CELL_CAMERA_ERROR_NOT_INIT;
1560 }
1561
1562 if (g_cfg.io.camera == camera_handler::null)
1563 {
1564 return CELL_OK;
1565 }
1566
1567 if (error_code error = check_resolution(0))
1568 {
1569 return error;
1570 }
1571
1572 g_camera.add_queue(key, source, flag);
1573
1574 return CELL_OK;
1575}
1576
1577error_code cellCameraRemoveNotifyEventQueue2(u64 key)
1578{

Callers

nothing calls this directly

Calls 2

check_resolutionFunction · 0.85
add_queueMethod · 0.80

Tested by

no test coverage detected