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

Function ilLoadIffL

DevIL/src-IL/src/il_iff.cpp:101–117  ·  view source on GitHub ↗

Reads from a memory "lump" that contains an IFF

Source from the content-addressed store, hash-verified

99
100//! Reads from a memory "lump" that contains an IFF
101ILboolean ilLoadIffL(const void *Lump, ILuint Size)
102{
103 ILuint FirstPos;
104 ILboolean bRet;
105
106 iSetInputLump(Lump, Size);
107 FirstPos = itell();
108 bRet = iLoadIffInternal();
109 iseek(FirstPos, IL_SEEK_SET);
110
111 // Lbm files can have the .iff extension as well, so if Iff-loading failed,
112 // try to load it as a Lbm.
113 if (bRet == IL_FALSE)
114 return ilLoadIlbmL(Lump, Size);
115
116 return IL_TRUE;
117}
118
119ILboolean iLoadIffInternal(void)
120{

Callers 1

ILAPIENTRY ilLoadLFunction · 0.85

Calls 3

iSetInputLumpFunction · 0.85
iLoadIffInternalFunction · 0.85
ilLoadIlbmLFunction · 0.85

Tested by

no test coverage detected