MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / String_GenerateFilename

Function String_GenerateFilename

src/string.c:80–88  ·  view source on GitHub ↗

* Appends ".(ENG|FRE|...)" to the given string. * * @param name The string to append extension to. * @return The new string. */

Source from the content-addressed store, hash-verified

78 * @return The new string.
79 */
80const char *String_GenerateFilename(const char *name)
81{
82 static char filename[14];
83
84 assert(g_config.language < lengthof(g_languageSuffixes));
85
86 snprintf(filename, sizeof(filename), "%s.%s", name, g_languageSuffixes[g_config.language]);
87 return filename;
88}
89
90/**
91 * Returns a pointer to the string at given index in current string file.

Callers 7

String_LoadFunction · 0.85
Sprites_InitFunction · 0.85
GameLoop_GameCreditsFunction · 0.85
Gameloop_LogosFunction · 0.85
GUI_PickHouseFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected