| 173 | |
| 174 | |
| 175 | ILboolean 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 | |
| 202 | ILboolean iRegisterSave(ILconst_string FileName) |
no test coverage detected