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.
24 lines
426 B
24 lines
426 B
#include "diablo.h" |
|
#include "../3rdParty/Storm/Source/storm.h" |
|
|
|
DEVILUTION_BEGIN_NAMESPACE |
|
|
|
BOOL ReadOnlyTest() |
|
{ |
|
FILE *f; |
|
char path[MAX_PATH], Filename[MAX_PATH]; |
|
|
|
GetPrefPath(path, MAX_PATH); |
|
snprintf(Filename, DVL_MAX_PATH, "%sDiablo1ReadOnlyTest.foo", path); |
|
|
|
f = fopen(Filename, "wt"); |
|
if (f) { |
|
fclose(f); |
|
remove(Filename); |
|
return FALSE; |
|
} |
|
|
|
return TRUE; |
|
} |
|
|
|
DEVILUTION_END_NAMESPACE
|
|
|