| 339 | } |
| 340 | |
| 341 | int CScriptFile::GetSize() const |
| 342 | { |
| 343 | if( file == 0 ) |
| 344 | return -1; |
| 345 | |
| 346 | int pos = ftell(file); |
| 347 | fseek(file, 0, SEEK_END); |
| 348 | int size = ftell(file); |
| 349 | fseek(file, pos, SEEK_SET); |
| 350 | |
| 351 | return size; |
| 352 | } |
| 353 | |
| 354 | int CScriptFile::GetPos() const |
| 355 | { |
no outgoing calls
no test coverage detected