MCPcopy Create free account
hub / github.com/DFHack/dfhack / suspend_game

Method suspend_game

library/RemoteClient.cpp:285–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285int 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
303int RemoteClient::resume_game()
304{

Callers 1

RemoteSuspenderMethod · 0.80

Calls 2

bindMethod · 0.45
outMethod · 0.45

Tested by

no test coverage detected