- pass filename to I_WriteIniFailed as parameter.

This accessed game data from the backend.
This commit is contained in:
Christoph Oelckers 2022-10-02 14:08:07 +02:00
commit 307ff4e163
4 changed files with 6 additions and 8 deletions

View file

@ -292,7 +292,7 @@ bool M_SaveDefaults (const char *filename)
void M_SaveDefaultsFinal ()
{
if (GameConfig == nullptr) return;
while (!M_SaveDefaults (nullptr) && I_WriteIniFailed ())
while (!M_SaveDefaults (nullptr) && I_WriteIniFailed (GameConfig->GetPathName()))
{
/* Loop until the config saves or I_WriteIniFailed() returns false */
}