devilutionX/Source/restrict.cpp
Anders Jenbo dc8be6c0ab
C++03 compatibility (#736)
* Use C++03 compatible constructors
* Remove conflicting definitions
2020-05-17 01:37:19 +02:00

23 lines
409 B
C++

#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"
DEVILUTION_BEGIN_NAMESPACE
void ReadOnlyTest()
{
FILE *f;
char path[MAX_PATH], Filename[MAX_PATH];
GetPrefPath(path, MAX_PATH);
snprintf(Filename, MAX_PATH, "%sDiablo1ReadOnlyTest.foo", path);
f = fopen(Filename, "wt");
if (!f) {
DirErrorDlg(path);
}
fclose(f);
remove(Filename);;
}
DEVILUTION_END_NAMESPACE