| 1559 | |
| 1560 | extern int Num_languages; |
| 1561 | void 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 | |
| 1580 | void InitGraphics(bool editor) { |
| 1581 | // Init our bitmaps, must be called before InitTextures |
no test coverage detected