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

Function GetMessage

scripts/Geodomes.cpp:323–335  ·  view source on GitHub ↗

Find a message

Source from the content-addressed store, hash-verified

321
322// Find a message
323const char *GetMessage(const char *name) {
324 // Make sure given name is valid
325 if (name == NULL)
326 return INV_MSGNAME_STRING;
327
328 // Search message list for name
329 for (int j = 0; j < num_messages; j++)
330 if (strcmp(message_list[j]->name, name) == 0)
331 return (message_list[j]->message);
332
333 // Couldn't find it
334 return NO_MESSAGE_STRING;
335}
336
337//======================
338// Name List Arrays

Callers 1

InitializeDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected