mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-06 12:14:15 +00: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 ) )
|
if( COM_CheckStringEmpty( GameInfo->game_dll_osx ) )
|
||||||
FS_Printf( f, "gamedll_osx\t\t\"%s\"\n", GameInfo->game_dll_osx );
|
FS_Printf( f, "gamedll_osx\t\t\"%s\"\n", GameInfo->game_dll_osx );
|
||||||
|
|
||||||
|
|
||||||
if( COM_CheckStringEmpty( GameInfo->iconpath ))
|
if( COM_CheckStringEmpty( GameInfo->iconpath ))
|
||||||
FS_Printf( f, "icon\t\t\"%s\"\n", 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_Print( f, "\n\n\n" );
|
||||||
FS_Close( f ); // all done
|
FS_Close( f ); // all done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user