mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
When failing to open a savegame file for writing, print the reason to the log.
git-svn-id: https://svn.eduke32.com/eduke32@2393 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
edb110b692
commit
e5a133db8b
1 changed files with 5 additions and 0 deletions
|
@ -881,9 +881,14 @@ int32_t G_SavePlayer(int32_t spot)
|
|||
Bsnprintf(temp, sizeof(temp), "%s", fn);
|
||||
temp[sizeof(temp)-1] = 0;
|
||||
|
||||
errno = 0;
|
||||
fil = fopen(temp, "wb");
|
||||
if (!fil)
|
||||
{
|
||||
return -1;
|
||||
OSD_Printf("G_SavePlayer: failed opening '%s' for writing: %s\n",
|
||||
temp, strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef POLYMER
|
||||
|
|
Loading…
Reference in a new issue