- 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

@ -36,12 +36,11 @@
#include "cmdlib.h"
#include "i_system.h"
#include "gameconfigfile.h"
bool I_WriteIniFailed()
bool I_WriteIniFailed(const char * filename)
{
printf("The config file %s could not be saved:\n%s\n", GameConfig->GetPathName(), strerror(errno));
printf("The config file %s could not be saved:\n%s\n", filename, strerror(errno));
return false; // return true to retry
}