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

Function iRegisterLoad

DevIL/src-IL/src/il_register.cpp:175–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175ILboolean iRegisterLoad(ILconst_string FileName)
176{
177 iFormatL *TempNode = LoadProcs;
178 ILstring Ext = iGetExtension(FileName);
179 ILenum Error;
180
181 if (!Ext)
182 return IL_FALSE;
183
184 while (TempNode != NULL) {
185 if (!iStrCmp(Ext, TempNode->Ext)) {
186 Error = TempNode->Load(FileName);
187 if (Error == IL_NO_ERROR || Error == 0) { // 0 and IL_NO_ERROR are both valid.
188 return IL_TRUE;
189 }
190 else {
191 ilSetError(Error);
192 return IL_FALSE;
193 }
194 }
195 TempNode = TempNode->Next;
196 }
197
198 return IL_FALSE;
199}
200
201
202ILboolean iRegisterSave(ILconst_string FileName)

Callers 1

ILAPIENTRY ilLoadImageFunction · 0.85

Calls 4

iGetExtensionFunction · 0.85
iStrCmpFunction · 0.85
ilSetErrorFunction · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected