| 278 | } |
| 279 | |
| 280 | error_code cellPadEnd(ppu_thread& ppu) |
| 281 | { |
| 282 | cellPad.notice("cellPadEnd()"); |
| 283 | |
| 284 | std::lock_guard lock(pad::g_pad_mutex); |
| 285 | |
| 286 | auto& config = g_fxo->get<pad_info>(); |
| 287 | |
| 288 | if (!config.max_connect.exchange(0)) |
| 289 | return CELL_PAD_ERROR_UNINITIALIZED; |
| 290 | |
| 291 | sys_config_stop(ppu); |
| 292 | return CELL_OK; |
| 293 | } |
| 294 | |
| 295 | void clear_pad_buffer(const std::shared_ptr<Pad>& pad) |
| 296 | { |
nothing calls this directly
no test coverage detected