filesystem: make current set GameInfo const

This commit is contained in:
Alibek Omarov
2025-10-02 22:42:51 +05:00
parent a366f99d7d
commit 4ef23543ae
2 changed files with 4 additions and 4 deletions

View File

@@ -697,8 +697,8 @@ static qboolean FS_WriteGameInfo( const char *filepath, gameinfo_t *GameInfo )
FS_Printf( f, "hd_background\t\t%i\n", GameInfo->hd_background );
// 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_Printf( f, "internal_vgui_support\t\t%i\n", GameInfo->internal_vgui_support );
FS_Printf( f, "render_picbutton_text\t\t%i\n", GameInfo->render_picbutton_text );
if( COM_CheckStringEmpty( GameInfo->demomap ))
FS_Printf( f, "demomap\t\t\"%s\"\n", GameInfo->demomap );
@@ -1364,7 +1364,7 @@ void FS_Rescan( uint32_t flags, const char *language )
if( Q_stricmp( GI->basedir, GI->falldir ) && Q_stricmp( GI->gamefolder, GI->falldir ))
FS_AddGameHierarchy( GI->falldir, flags );
GI->added = true;
((gameinfo_t *)GI)->added = true; // getting rid of const here, as this modifier only for the engine
FS_AddGameHierarchy( GI->gamefolder, FS_GAMEDIR_PATH | flags );
}