mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 22:42:29 +00:00
- print a message if saving the statistics file fails.
This commit is contained in:
parent
ae09ca7a48
commit
fa0be28af1
1 changed files with 5 additions and 1 deletions
|
@ -248,7 +248,11 @@ static void SaveStatistics(const char *fn, TArray<FStatistics> &statlist)
|
|||
unsigned int j;
|
||||
|
||||
FileWriter *fw = FileWriter::Open(fn);
|
||||
if (fw == nullptr) return;
|
||||
if (fw == nullptr)
|
||||
{
|
||||
Printf(PRINT_HIGH, "Unable to save statistics to %s\n", fn);
|
||||
return;
|
||||
}
|
||||
|
||||
qsort(&statlist[0], statlist.Size(), sizeof(statlist[0]), compare_episode_names);
|
||||
for(unsigned i=0;i<statlist.Size ();i++)
|
||||
|
|
Loading…
Reference in a new issue