MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / LoadStrings

Method LoadStrings

src/vizdoom/src/stringtable.cpp:113–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112#include "doomerrors.h"
113void FStringTable::LoadStrings (bool enuOnly)
114{
115 int lastlump, lump;
116 int i, j;
117
118 FreeNonDehackedStrings ();
119
120 lastlump = 0;
121
122 while ((lump = Wads.FindLump ("LANGUAGE", &lastlump)) != -1)
123 {
124 j = 0;
125 if (!enuOnly)
126 {
127 LoadLanguage (lump, MAKE_ID('*',0,0,0), true, ++j);
128 for (i = 0; i < 4; ++i)
129 {
130 LoadLanguage (lump, LanguageIDs[i], true, ++j);
131 LoadLanguage (lump, LanguageIDs[i] & MAKE_ID(0xff,0xff,0,0), true, ++j);
132 LoadLanguage (lump, LanguageIDs[i], false, ++j);
133 }
134 }
135
136 // Fill in any missing strings with the default language
137 LoadLanguage (lump, MAKE_ID('*','*',0,0), true, ++j);
138 }
139}
140
141void FStringTable::LoadLanguage (int lumpnum, DWORD code, bool exactMatch, int passnum)
142{

Callers 3

D_DoomMainFunction · 0.80
doomstat.cppFile · 0.80
LoadDehSuppFunction · 0.80

Calls 1

FindLumpMethod · 0.80

Tested by

no test coverage detected