| 1497 | } |
| 1498 | |
| 1499 | error_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 | |
| 1525 | error_code cellCameraRemoveNotifyEventQueue(u64 key) |
| 1526 | { |
nothing calls this directly
no test coverage detected