| 508 | } |
| 509 | |
| 510 | error_code cellCameraEnd() |
| 511 | { |
| 512 | cellCamera.todo("cellCameraEnd()"); |
| 513 | |
| 514 | auto& g_camera = g_fxo->get<camera_thread>(); |
| 515 | |
| 516 | std::lock_guard lock(g_camera.mutex); |
| 517 | |
| 518 | if (!g_camera.init) |
| 519 | { |
| 520 | return CELL_CAMERA_ERROR_NOT_INIT; |
| 521 | } |
| 522 | |
| 523 | // TODO: call cellCameraClose(0), ignore errors |
| 524 | |
| 525 | // TODO |
| 526 | g_camera.init = 0; |
| 527 | g_camera.reset_state(); |
| 528 | return CELL_OK; |
| 529 | } |
| 530 | |
| 531 | error_code cellCameraOpen(s32 dev_num, vm::ptr<CellCameraInfo> info) |
| 532 | { |
nothing calls this directly
no test coverage detected