INNER CODE UNIT · C

Off_Buffer

ForsakenX/forsaken · 2dtextures.c:276

		Off_Buffer = malloc( File_Size );									// Allocate memory to load file into
		if( Off_Buffer == NULL )
		{
			free( Frm_Info );
			return( NULL );
		}
																			
		Read_Size = Read_File( Filename, Off_Buffer, File_Size );			// Read file
		if( Read_Size != File_Size )
		{
			free( Frm_Info );
			free( Off_Buffer );
			return( NULL );
		}
																			
		Short_Ptr = (int16_t *) Off_Buffer;									
																			
		Num_TPages = *Short_Ptr++;											// Number of possible new texture pages

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…