You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
409 B
23 lines
409 B
#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
|
|
|