| 283 | } |
| 284 | |
| 285 | int RemoteClient::suspend_game() |
| 286 | { |
| 287 | if (!active) |
| 288 | return -1; |
| 289 | |
| 290 | if (!suspend_ready) { |
| 291 | suspend_ready = true; |
| 292 | |
| 293 | suspend_call.bind(this, "CoreSuspend"); |
| 294 | resume_call.bind(this, "CoreResume"); |
| 295 | } |
| 296 | |
| 297 | if (suspend_call(default_output()) == CR_OK) |
| 298 | return suspend_call.out()->value(); |
| 299 | else |
| 300 | return -1; |
| 301 | } |
| 302 | |
| 303 | int RemoteClient::resume_game() |
| 304 | { |
no test coverage detected