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

Function InitStringTable

Descent3/init.cpp:1561–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1559
1560extern int Num_languages;
1561void InitStringTable() {
1562
1563 int language = LANGUAGE_ENGLISH;
1564 Database->read("LanguageType", &language, sizeof(language));
1565
1566 if (language < 0 || language >= Num_languages) {
1567 Int3();
1568 language = LANGUAGE_ENGLISH;
1569 }
1570 Localization_SetLanguage(language);
1571
1572 int string_count = LoadStringTables();
1573
1574 if (string_count == 0)
1575 Error("Couldn't find the string table.");
1576 else
1577 mprintf(0, "%d strings loaded from the string tables\n", string_count);
1578}
1579
1580void InitGraphics(bool editor) {
1581 // Init our bitmaps, must be called before InitTextures

Callers 1

InitD3Systems1Function · 0.85

Calls 4

Localization_SetLanguageFunction · 0.85
LoadStringTablesFunction · 0.85
ErrorFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected