| 200 | |
| 201 | |
| 202 | ILboolean iRegisterSave(ILconst_string FileName) |
| 203 | { |
| 204 | iFormatS *TempNode = SaveProcs; |
| 205 | ILstring Ext = iGetExtension(FileName); |
| 206 | ILenum Error; |
| 207 | |
| 208 | if (!Ext) |
| 209 | return IL_FALSE; |
| 210 | |
| 211 | while (TempNode != NULL) { |
| 212 | if (!iStrCmp(Ext, TempNode->Ext)) { |
| 213 | Error = TempNode->Save(FileName); |
| 214 | if (Error == IL_NO_ERROR || Error == 0) { // 0 and IL_NO_ERROR are both valid. |
| 215 | return IL_TRUE; |
| 216 | } |
| 217 | else { |
| 218 | ilSetError(Error); |
| 219 | return IL_FALSE; |
| 220 | } |
| 221 | } |
| 222 | TempNode = TempNode->Next; |
| 223 | } |
| 224 | |
| 225 | return IL_FALSE; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | // |
no test coverage detected