* Appends ".(ENG|FRE|...)" to the given string. * * @param name The string to append extension to. * @return The new string. */
| 78 | * @return The new string. |
| 79 | */ |
| 80 | const 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. |
no test coverage detected