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

Function iCheckLif

DevIL/src-IL/src/il_lif.cpp:109–116  ·  view source on GitHub ↗

Internal function used to check if the HEADER is a valid Lif header.

Source from the content-addressed store, hash-verified

107
108// Internal function used to check if the HEADER is a valid Lif header.
109ILboolean iCheckLif(LIF_HEAD *Header)
110{
111 if (Header->Version != 260 || Header->Flags != 50)
112 return IL_FALSE;
113 if (stricmp(Header->Id, "Willy 7"))
114 return IL_FALSE;
115 return IL_TRUE;
116}
117
118
119//! Reads a .Lif file

Callers 1

iIsValidLifFunction · 0.85

Calls 1

stricmpFunction · 0.85

Tested by

no test coverage detected