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

Function cellCameraSetNotifyEventQueue

ps3fw/cellCamera.cpp:1499–1523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1497}
1498
1499error_code cellCameraSetNotifyEventQueue(u64 key)
1500{
1501 cellCamera.notice("cellCameraSetNotifyEventQueue(key=0x%x)", key);
1502
1503 auto& g_camera = g_fxo->get<camera_thread>();
1504
1505 if (!g_camera.init)
1506 {
1507 return CELL_CAMERA_ERROR_NOT_INIT;
1508 }
1509
1510 if (g_cfg.io.camera == camera_handler::null)
1511 {
1512 return CELL_OK;
1513 }
1514
1515 if (error_code error = check_resolution(0))
1516 {
1517 return error;
1518 }
1519
1520 g_camera.add_queue(key, 0, 0);
1521
1522 return CELL_OK;
1523}
1524
1525error_code cellCameraRemoveNotifyEventQueue(u64 key)
1526{

Callers

nothing calls this directly

Calls 2

check_resolutionFunction · 0.85
add_queueMethod · 0.80

Tested by

no test coverage detected