| 723 | */ |
| 724 | |
| 725 | static qboolean AS_ParseFile( const char *filename, CSetGroup *sg ) |
| 726 | { |
| 727 | //Open the file and read the information from it |
| 728 | parseSize = FS_ReadFile( filename, (void **) &parseBuffer ); |
| 729 | |
| 730 | if ( parseSize <= 0 ) |
| 731 | return qfalse; |
| 732 | |
| 733 | //Parse the directory information out of the file |
| 734 | AS_ParseHeader(); |
| 735 | |
| 736 | //Parse all the relevent sets out of it |
| 737 | for ( int i = 0; i < NUM_AS_SETS; i++ ) |
| 738 | AS_ParseSet( i, sg ); |
| 739 | |
| 740 | //Free the memory and close the file |
| 741 | FS_FreeFile( parseBuffer ); |
| 742 | |
| 743 | return qtrue; |
| 744 | } |
| 745 | |
| 746 | /* |
| 747 | =============================================== |
no test coverage detected