Blood: cleanup of INI loading

* use snprintf instead of sprintf
* keep the IniFile object local
* get rid of the FreeGameData interface function, it only existed to free the global INI object.
This commit is contained in:
Christoph Oelckers 2023-09-30 22:31:52 +02:00
parent bb6d6ae83b
commit 26ba62dc62
7 changed files with 54 additions and 91 deletions

View file

@ -637,10 +637,6 @@ int GameMain()
DeinitMenus();
if (StatusBar) StatusBar->Destroy();
StatusBar = nullptr;
if (gi)
{
gi->FreeGameData(); // Must be done before taking down any subsystems.
}
S_StopMusic(true);
if (soundEngine) delete soundEngine;
soundEngine = nullptr;