mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-24 09:45:47 +01:00
filesystem: fix even more char signness
This commit is contained in:
parent
9048c108c4
commit
1d78d7c720
@ -62,7 +62,7 @@ typedef struct stringlist_s
|
||||
typedef struct wadtype_s
|
||||
{
|
||||
char *ext;
|
||||
char type;
|
||||
signed char type;
|
||||
} wadtype_t;
|
||||
|
||||
typedef struct file_s
|
||||
@ -122,7 +122,7 @@ qboolean fs_caseinsensitive = true; // try to search missing files
|
||||
|
||||
static void FS_InitMemory( void );
|
||||
static searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedironly );
|
||||
static dlumpinfo_t *W_FindLump( wfile_t *wad, const char *name, const char matchtype );
|
||||
static dlumpinfo_t *W_FindLump( wfile_t *wad, const char *name, const signed char matchtype );
|
||||
static dpackfile_t *FS_AddFileToPack( const char* name, pack_t *pack, fs_offset_t offset, fs_offset_t size );
|
||||
static byte *W_LoadFile( const char *path, fs_offset_t *filesizeptr, qboolean gamedironly );
|
||||
static wfile_t *W_Open( const char *filename, int *errorcode );
|
||||
@ -1956,7 +1956,7 @@ static searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedir
|
||||
else if( search->wad )
|
||||
{
|
||||
dlumpinfo_t *lump;
|
||||
char type = W_TypeFromExt( name );
|
||||
signed char type = W_TypeFromExt( name );
|
||||
qboolean anywadname = true;
|
||||
string wadname, wadfolder;
|
||||
string shortname;
|
||||
@ -2952,7 +2952,7 @@ search_t *FS_Search( const char *pattern, int caseinsensitive, int gamedironly )
|
||||
else if( searchpath->wad )
|
||||
{
|
||||
string wadpattern, wadname, temp2;
|
||||
char type = W_TypeFromExt( pattern );
|
||||
signed char type = W_TypeFromExt( pattern );
|
||||
qboolean anywadname = true;
|
||||
string wadfolder;
|
||||
|
||||
@ -3165,7 +3165,7 @@ W_FindLump
|
||||
Serach for already existed lump
|
||||
===========
|
||||
*/
|
||||
static dlumpinfo_t *W_FindLump( wfile_t *wad, const char *name, const char matchtype )
|
||||
static dlumpinfo_t *W_FindLump( wfile_t *wad, const char *name, const signed char matchtype )
|
||||
{
|
||||
int left, right;
|
||||
|
||||
|
@ -78,8 +78,8 @@ typedef struct
|
||||
int size; // uncompressed
|
||||
signed char type; // TYP_*
|
||||
signed char attribs; // file attribs
|
||||
char pad0;
|
||||
char pad1;
|
||||
signed char pad0;
|
||||
signed char pad1;
|
||||
char name[WAD3_NAMELEN]; // must be null terminated
|
||||
} dlumpinfo_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user