Browse Source

Fix GameInfo parsing

pull/2/head
Alibek Omarov 7 years ago
parent
commit
535b00d98f
  1. 9
      engine/common/filesystem.c

9
engine/common/filesystem.c

@ -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…
Cancel
Save