Reads an already-opened IFF file
| 79 | |
| 80 | //! Reads an already-opened IFF file |
| 81 | ILboolean ilLoadIffF(ILHANDLE File) |
| 82 | { |
| 83 | ILuint FirstPos; |
| 84 | ILboolean bRet; |
| 85 | |
| 86 | iSetInputFile(File); |
| 87 | FirstPos = itell(); |
| 88 | bRet = iLoadIffInternal(); |
| 89 | iseek(FirstPos, IL_SEEK_SET); |
| 90 | |
| 91 | // Lbm files can have the .iff extension as well, so if Iff-loading failed, |
| 92 | // try to load it as a Lbm. |
| 93 | if (bRet == IL_FALSE) |
| 94 | return ilLoadIlbmF(File); |
| 95 | |
| 96 | return bRet; |
| 97 | } |
| 98 | |
| 99 | |
| 100 | //! Reads from a memory "lump" that contains an IFF |
no test coverage detected