MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilRemoveLoad

Function ILAPIENTRY ilRemoveLoad

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

Unregisters a load extension - doesn't have to be called.

Source from the content-addressed store, hash-verified

92
93//! Unregisters a load extension - doesn't have to be called.
94ILboolean ILAPIENTRY ilRemoveLoad(ILconst_string Ext)
95{
96 iFormatL *TempNode = LoadProcs, *PrevNode = NULL;
97
98 while (TempNode != NULL) {
99 if (!iStrCmp(Ext, TempNode->Ext)) {
100 if (PrevNode == NULL) { // first node in the list
101 LoadProcs = TempNode->Next;
102 ifree((void*)TempNode->Ext);
103 ifree(TempNode);
104 }
105 else {
106 PrevNode->Next = TempNode->Next;
107 ifree((void*)TempNode->Ext);
108 ifree(TempNode);
109 }
110
111 return IL_TRUE;
112 }
113
114 PrevNode = TempNode;
115 TempNode = TempNode->Next;
116 }
117
118 return IL_FALSE;
119}
120
121
122//! Unregisters a save extension - doesn't have to be called.

Callers

nothing calls this directly

Calls 1

iStrCmpFunction · 0.85

Tested by

no test coverage detected