Devilution
Diablo devolved - magic behind the 1996 computer game
restrict.cpp
Go to the documentation of this file.
1 #include "all.h"
2 #include "../3rdParty/Storm/Source/storm.h"
3 
5 
7 {
8  FILE *f;
9  char path[MAX_PATH], Filename[MAX_PATH];
10 
11  GetPrefPath(path, MAX_PATH);
12  snprintf(Filename, DVL_MAX_PATH, "%sDiablo1ReadOnlyTest.foo", path);
13 
14  f = fopen(Filename, "wt");
15  if (!f) {
16  DirErrorDlg(path);
17  }
18 
19  fclose(f);
20  remove(Filename);;
21 }
22 
DirErrorDlg
void DirErrorDlg(char *error)
Definition: appfat.cpp:128
all.h
DEVILUTION_END_NAMESPACE
#define DEVILUTION_END_NAMESPACE
Definition: types.h:10
ReadOnlyTest
DEVILUTION_BEGIN_NAMESPACE void ReadOnlyTest()
Definition: restrict.cpp:6
DEVILUTION_BEGIN_NAMESPACE
Definition: sha.cpp:10