Reads an already-opened UTX file
| 38 | |
| 39 | //! Reads an already-opened UTX file |
| 40 | ILboolean ilLoadUtxF(ILHANDLE File) |
| 41 | { |
| 42 | ILuint FirstPos; |
| 43 | ILboolean bRet; |
| 44 | |
| 45 | iSetInputFile(File); |
| 46 | FirstPos = itell(); |
| 47 | try { |
| 48 | bRet = iLoadUtxInternal(); |
| 49 | } |
| 50 | catch (bad_alloc &e) { |
| 51 | e; |
| 52 | ilSetError(IL_OUT_OF_MEMORY); |
| 53 | return IL_FALSE; |
| 54 | } |
| 55 | iseek(FirstPos, IL_SEEK_SET); |
| 56 | |
| 57 | return bRet; |
| 58 | } |
| 59 | |
| 60 | |
| 61 | //! Reads from a memory "lump" that contains a UTX |
no test coverage detected