Devilution
Diablo devolved - magic behind the 1996 computer game
Source
restrict.cpp
Go to the documentation of this file.
1
#include "
all.h
"
2
#include "../3rdParty/Storm/Source/storm.h"
3
4
DEVILUTION_BEGIN_NAMESPACE
5
6
void
ReadOnlyTest
()
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
23
DEVILUTION_END_NAMESPACE
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
Generated by
1.8.17