| 577 | |
| 578 | |
| 579 | void iUnCache() |
| 580 | { |
| 581 | //changed 2003-09-01: |
| 582 | //make iUnCache smart enough to return if |
| 583 | //no cache is used |
| 584 | if (!UseCache) |
| 585 | return; |
| 586 | |
| 587 | if (iread == iReadLump) |
| 588 | return; |
| 589 | |
| 590 | CacheSize = 0; |
| 591 | CachePos = 0; |
| 592 | if (Cache) { |
| 593 | ifree(Cache); |
| 594 | Cache = NULL; |
| 595 | } |
| 596 | UseCache = IL_FALSE; |
| 597 | |
| 598 | iseek(CacheStartPos + CacheBytesRead, IL_SEEK_SET); |
| 599 | |
| 600 | return; |
| 601 | } |
| 602 | |
| 603 | |
| 604 | ILint ILAPIENTRY iSeekRFile(ILint Offset, ILuint Mode) |
no outgoing calls
no test coverage detected