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

Function FlushWinFile

outdated/sys/mac/maccurs.c:62–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static void
63FlushWinFile(void)
64{
65 short ref;
66 long len;
67
68 if (!winFileInit) {
69 if (!winFileName[0]) {
70 return;
71 }
72 HCreate(winFileVol, winFileDir, winFileName, MAC_CREATOR, PREF_TYPE);
73 HCreateResFile(winFileVol, winFileDir, winFileName);
74 }
75 if (HOpen(winFileVol, winFileDir, winFileName, fsWrPerm, &ref)) {
76 return;
77 }
78 winFileInit = 1;
79 len = sizeof(savePos);
80 (void) FSWrite(ref, &len, savePos); /* Don't care about error */
81 FSClose(ref);
82}
83
84Boolean
85RetrievePosition(short kind, short *top, short *left)

Callers 2

SavePositionFunction · 0.85
SaveSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected