Reads a Doom file
| 27 | |
| 28 | //! Reads a Doom file |
| 29 | ILboolean ilLoadDoom(ILconst_string FileName) |
| 30 | { |
| 31 | ILHANDLE DoomFile; |
| 32 | ILboolean bDoom = IL_FALSE; |
| 33 | |
| 34 | // Not sure of any kind of specified extension...maybe .lmp? |
| 35 | /*if (!iCheckExtension(FileName, "")) { |
| 36 | ilSetError(IL_INVALID_EXTENSION); |
| 37 | return NULL; |
| 38 | }*/ |
| 39 | |
| 40 | DoomFile = iopenr(FileName); |
| 41 | if (DoomFile == NULL) { |
| 42 | ilSetError(IL_COULD_NOT_OPEN_FILE); |
| 43 | return bDoom; |
| 44 | } |
| 45 | |
| 46 | bDoom = ilLoadDoomF(DoomFile); |
| 47 | icloser(DoomFile); |
| 48 | |
| 49 | return bDoom; |
| 50 | } |
| 51 | |
| 52 | |
| 53 | //! Reads an already-opened Doom file |
no test coverage detected