MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilLoadDoom

Function ilLoadDoom

DevIL/src-IL/src/il_doom.cpp:29–50  ·  view source on GitHub ↗

Reads a Doom file

Source from the content-addressed store, hash-verified

27
28//! Reads a Doom file
29ILboolean ilLoadDoom(ILconst_string FileName)
30{
31 ILHANDLE DoomFile;
32 ILboolean bDoom = IL_FALSE;
33
34 // Not sure of any kind of specified extension...maybe .lmp?
35 /*if (!iCheckExtension(FileName, "")) {
36 ilSetError(IL_INVALID_EXTENSION);
37 return NULL;
38 }*/
39
40 DoomFile = iopenr(FileName);
41 if (DoomFile == NULL) {
42 ilSetError(IL_COULD_NOT_OPEN_FILE);
43 return bDoom;
44 }
45
46 bDoom = ilLoadDoomF(DoomFile);
47 icloser(DoomFile);
48
49 return bDoom;
50}
51
52
53//! Reads an already-opened Doom file

Callers 1

ILAPIENTRY ilLoadFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadDoomFFunction · 0.85

Tested by

no test coverage detected