MCPcopy Create free account
hub / github.com/NetHack/NetHack / save_port

Function save_port

outdated/sys/mac/mactty.c:400–414  ·  view source on GitHub ↗

* Save the current port/world in a safe place for later retrieval */

Source from the content-addressed store, hash-verified

398 * Save the current port/world in a safe place for later retrieval
399 */
400static void
401save_port(tty_record *record, void *save)
402{
403 GWorldPtr gw;
404 GDHandle gh;
405 GrafPtr gp;
406
407 if (record->uses_gworld) {
408 GetGWorld(&gw, &gh);
409 *(GWorldPtr *) save = gw;
410 } else {
411 GetPort(&gp);
412 *(GrafPtr *) save = gp;
413 }
414}
415
416/*
417 * Restore current port/world after a save

Callers 1

curs_posFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected