Reads from a memory "lump" that contains an IFF
| 99 | |
| 100 | //! Reads from a memory "lump" that contains an IFF |
| 101 | ILboolean ilLoadIffL(const void *Lump, ILuint Size) |
| 102 | { |
| 103 | ILuint FirstPos; |
| 104 | ILboolean bRet; |
| 105 | |
| 106 | iSetInputLump(Lump, Size); |
| 107 | FirstPos = itell(); |
| 108 | bRet = iLoadIffInternal(); |
| 109 | iseek(FirstPos, IL_SEEK_SET); |
| 110 | |
| 111 | // Lbm files can have the .iff extension as well, so if Iff-loading failed, |
| 112 | // try to load it as a Lbm. |
| 113 | if (bRet == IL_FALSE) |
| 114 | return ilLoadIlbmL(Lump, Size); |
| 115 | |
| 116 | return IL_TRUE; |
| 117 | } |
| 118 | |
| 119 | ILboolean iLoadIffInternal(void) |
| 120 | { |
no test coverage detected