From 535b00d98fa55f81e8f4a0c0e5d8d57286da54b0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 21 Apr 2018 02:51:14 +0300 Subject: [PATCH] Fix GameInfo parsing --- engine/common/filesystem.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index bf784fd3..91d6e82a 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -1234,8 +1234,7 @@ FS_ParseLiblistGam */ static qboolean FS_ParseLiblistGam( const char *filename, const char *gamedir, gameinfo_t *GameInfo ) { - char *afile, *pfile; - string token; + char *afile; if( !GameInfo ) return 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 ) { - char *afile, *pfile; - char token[1204]; - string fs_path; + char *afile; afile = FS_LoadFile( filepath, NULL, false ); if( !afile ) return false; FS_InitGameInfo( GameInfo, gamedir ); - FS_ParseGenericGameInfo( GameInfo, afile, false ); + FS_ParseGenericGameInfo( GameInfo, afile, true ); Mem_Free( afile );