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

Function LoadScriptFile

src/vizdoom/src/p_conversation.cpp:227–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225//============================================================================
226
227bool LoadScriptFile (const char *name, bool include, int type)
228{
229 int lumpnum = Wads.CheckNumForName (name);
230 FileReader *lump;
231
232 if (lumpnum < 0)
233 {
234 return false;
235 }
236 lump = Wads.ReopenLumpNum (lumpnum);
237
238 bool res = LoadScriptFile(lumpnum, lump, Wads.LumpLength(lumpnum), include, type);
239 delete lump;
240 return res;
241}
242
243static bool LoadScriptFile(int lumpnum, FileReader *lump, int numnodes, bool include, int type)
244{

Callers 2

ParseMethod · 0.85

Calls 10

P_ParseUSDFFunction · 0.85
ReadRetailNodeFunction · 0.85
ReadTeaserNodeFunction · 0.85
ReopenLumpNumMethod · 0.80
LumpLengthMethod · 0.80
GetLumpFullNameMethod · 0.80
PushMethod · 0.80
CheckNumForNameMethod · 0.45
ReadMethod · 0.45
SeekMethod · 0.45

Tested by

no test coverage detected