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

Function ilLoadUtxF

DevIL/src-IL/src/il_utx.cpp:40–58  ·  view source on GitHub ↗

Reads an already-opened UTX file

Source from the content-addressed store, hash-verified

38
39//! Reads an already-opened UTX file
40ILboolean ilLoadUtxF(ILHANDLE File)
41{
42 ILuint FirstPos;
43 ILboolean bRet;
44
45 iSetInputFile(File);
46 FirstPos = itell();
47 try {
48 bRet = iLoadUtxInternal();
49 }
50 catch (bad_alloc &e) {
51 e;
52 ilSetError(IL_OUT_OF_MEMORY);
53 return IL_FALSE;
54 }
55 iseek(FirstPos, IL_SEEK_SET);
56
57 return bRet;
58}
59
60
61//! Reads from a memory "lump" that contains a UTX

Callers 1

ilLoadUtxFunction · 0.70

Calls 3

iSetInputFileFunction · 0.85
ilSetErrorFunction · 0.85
iLoadUtxInternalFunction · 0.70

Tested by

no test coverage detected