mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 05:29:51 +01:00
filesystem: write extended fields to gameinfo.txt, as this function is used to write game info when using rodir
This commit is contained in:
parent
df1c9a5029
commit
03a3fb83b6
@ -487,7 +487,6 @@ static void FS_WriteGameInfo( const char *filepath, gameinfo_t *GameInfo )
|
||||
if( COM_CheckStringEmpty( GameInfo->game_dll_osx ) )
|
||||
FS_Printf( f, "gamedll_osx\t\t\"%s\"\n", GameInfo->game_dll_osx );
|
||||
|
||||
|
||||
if( COM_CheckStringEmpty( GameInfo->iconpath ))
|
||||
FS_Printf( f, "icon\t\t\"%s\"\n", GameInfo->iconpath );
|
||||
|
||||
@ -532,6 +531,13 @@ static void FS_WriteGameInfo( const char *filepath, gameinfo_t *GameInfo )
|
||||
}
|
||||
}
|
||||
|
||||
if( GameInfo->noskills )
|
||||
FS_Printf( f, "noskills\t\t\"%i\"\n", GameInfo->nomodels );
|
||||
|
||||
// always expose our extensions :)
|
||||
FS_Printf( f, "internal_vgui_support\t\t%s\n", GameInfo->internal_vgui_support ? "1" : "0" );
|
||||
FS_Printf( f, "render_picbutton_text\t\t%s\n", GameInfo->render_picbutton_text ? "1" : "0" );
|
||||
|
||||
FS_Print( f, "\n\n\n" );
|
||||
FS_Close( f ); // all done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user