mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
filesystem: zip: codestyle
This commit is contained in:
parent
b32de42ab7
commit
5cf4e34607
@ -540,7 +540,6 @@ void FS_AddGameDirectory( const char *dir, uint flags );
|
|||||||
void FS_AddGameHierarchy( const char *dir, uint flags );
|
void FS_AddGameHierarchy( const char *dir, uint flags );
|
||||||
void FS_LoadGameInfo( const char *rootfolder );
|
void FS_LoadGameInfo( const char *rootfolder );
|
||||||
const char *FS_GetDiskPath( const char *name, qboolean gamedironly );
|
const char *FS_GetDiskPath( const char *name, qboolean gamedironly );
|
||||||
void Zip_Close( zip_t *zip );
|
|
||||||
byte *W_LoadLump( wfile_t *wad, const char *lumpname, size_t *lumpsizeptr, const char type );
|
byte *W_LoadLump( wfile_t *wad, const char *lumpname, size_t *lumpsizeptr, const char type );
|
||||||
void W_Close( wfile_t *wad );
|
void W_Close( wfile_t *wad );
|
||||||
byte *FS_LoadFile( const char *path, fs_offset_t *filesizeptr, qboolean gamedironly );
|
byte *FS_LoadFile( const char *path, fs_offset_t *filesizeptr, qboolean gamedironly );
|
||||||
|
@ -824,7 +824,7 @@ static byte *Zip_LoadFile( const char *path, fs_offset_t *sizeptr, qboolean game
|
|||||||
|
|
||||||
FS_Read( search->zip->handle, (void*)&header, sizeof( header ) );
|
FS_Read( search->zip->handle, (void*)&header, sizeof( header ) );
|
||||||
|
|
||||||
if(header.signature != ZIP_HEADER_LF)
|
if( header.signature != ZIP_HEADER_LF )
|
||||||
{
|
{
|
||||||
Con_Reportf( S_ERROR "Zip_LoadFile: %s signature error\n", file->name );
|
Con_Reportf( S_ERROR "Zip_LoadFile: %s signature error\n", file->name );
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -848,7 +848,7 @@ static byte *Zip_LoadFile( const char *path, fs_offset_t *sizeptr, qboolean game
|
|||||||
CRC32_Init( &test_crc );
|
CRC32_Init( &test_crc );
|
||||||
CRC32_ProcessBuffer( &test_crc, decompressed_buffer, file->size );
|
CRC32_ProcessBuffer( &test_crc, decompressed_buffer, file->size );
|
||||||
|
|
||||||
final_crc = CRC32_Final(test_crc);
|
final_crc = CRC32_Final( test_crc );
|
||||||
|
|
||||||
if( final_crc != header.crc32 )
|
if( final_crc != header.crc32 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user