From 03a3fb83b67057d4e9ba80cb5aeab760e311c814 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 3 Jan 2023 07:34:05 +0300 Subject: [PATCH] filesystem: write extended fields to gameinfo.txt, as this function is used to write game info when using rodir --- filesystem/filesystem.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index 43f5350a..2803a33b 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -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 }