MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SerialError

Function SerialError

Descent3/d3serial.cpp:210–225  ·  view source on GitHub ↗

displays an error box displaying what went wrong with serialization checking

Source from the content-addressed store, hash-verified

208
209// displays an error box displaying what went wrong with serialization checking
210void SerialError(int error) {
211 switch (error) {
212 case SERIAL_EXPIRED: {
213 Debug_MessageBox(OSMBOX_OK, PRODUCT_NAME, "Executable has expired");
214 break;
215 }
216 case SERIAL_BAD_CHECKSUM: {
217 Debug_MessageBox(OSMBOX_OK, PRODUCT_NAME, "Bad Checksum");
218 break;
219 }
220 case SERIAL_UNREGISTERED: {
221 Debug_MessageBox(OSMBOX_OK, PRODUCT_NAME, "This is unregistered, please serialize");
222 break;
223 }
224 }
225}
226
227uint32_t SerialGetSerialNum(void) { return d3_serialnum; }

Callers

nothing calls this directly

Calls 1

Debug_MessageBoxFunction · 0.50

Tested by

no test coverage detected