MCPcopy Create free account
hub / github.com/JACoders/OpenJK / AS_ParseFile

Function AS_ParseFile

code/client/snd_ambient.cpp:725–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723*/
724
725static 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===============================================

Callers 1

AS_ParseSetsFunction · 0.70

Calls 4

AS_ParseHeaderFunction · 0.70
AS_ParseSetFunction · 0.70
FS_ReadFileFunction · 0.50
FS_FreeFileFunction · 0.50

Tested by

no test coverage detected