| 66 | |
| 67 | |
| 68 | ILboolean ilIsValidKtx(ILconst_string FileName) |
| 69 | { |
| 70 | ILHANDLE KtxFile; |
| 71 | ILboolean bKtx = IL_FALSE; |
| 72 | |
| 73 | if (!iCheckExtension(FileName, IL_TEXT("ktx"))) { |
| 74 | ilSetError(IL_INVALID_EXTENSION); |
| 75 | return bKtx; |
| 76 | } |
| 77 | |
| 78 | KtxFile = iopenr(FileName); |
| 79 | if (KtxFile == NULL) { |
| 80 | ilSetError(IL_COULD_NOT_OPEN_FILE); |
| 81 | return bKtx; |
| 82 | } |
| 83 | |
| 84 | bKtx = ilIsValidKtxF(KtxFile); |
| 85 | icloser(KtxFile); |
| 86 | |
| 87 | return bKtx; |
| 88 | } |
| 89 | |
| 90 | |
| 91 | ILboolean ilIsValidKtxF(ILHANDLE File) |
no test coverage detected