| 1549 | } |
| 1550 | |
| 1551 | error_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 | |
| 1577 | error_code cellCameraRemoveNotifyEventQueue2(u64 key) |
| 1578 | { |
nothing calls this directly
no test coverage detected