mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-25 22:34:24 +00:00
Fix GameInfo parsing
This commit is contained in:
parent
de35262a3b
commit
535b00d98f
@ -1234,8 +1234,7 @@ FS_ParseLiblistGam
|
|||||||
*/
|
*/
|
||||||
static qboolean FS_ParseLiblistGam( const char *filename, const char *gamedir, gameinfo_t *GameInfo )
|
static qboolean FS_ParseLiblistGam( const char *filename, const char *gamedir, gameinfo_t *GameInfo )
|
||||||
{
|
{
|
||||||
char *afile, *pfile;
|
char *afile;
|
||||||
string token;
|
|
||||||
|
|
||||||
if( !GameInfo ) return false;
|
if( !GameInfo ) return false;
|
||||||
afile = FS_LoadFile( filename, NULL, false );
|
afile = FS_LoadFile( filename, NULL, false );
|
||||||
@ -1275,16 +1274,14 @@ FS_ReadGameInfo
|
|||||||
*/
|
*/
|
||||||
static qboolean FS_ReadGameInfo( const char *filepath, const char *gamedir, gameinfo_t *GameInfo )
|
static qboolean FS_ReadGameInfo( const char *filepath, const char *gamedir, gameinfo_t *GameInfo )
|
||||||
{
|
{
|
||||||
char *afile, *pfile;
|
char *afile;
|
||||||
char token[1204];
|
|
||||||
string fs_path;
|
|
||||||
|
|
||||||
afile = FS_LoadFile( filepath, NULL, false );
|
afile = FS_LoadFile( filepath, NULL, false );
|
||||||
if( !afile ) return false;
|
if( !afile ) return false;
|
||||||
|
|
||||||
FS_InitGameInfo( GameInfo, gamedir );
|
FS_InitGameInfo( GameInfo, gamedir );
|
||||||
|
|
||||||
FS_ParseGenericGameInfo( GameInfo, afile, false );
|
FS_ParseGenericGameInfo( GameInfo, afile, true );
|
||||||
|
|
||||||
Mem_Free( afile );
|
Mem_Free( afile );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user