MCPcopy Create free account
hub / github.com/diasurgical/devilution / ReadOnlyTest

Function ReadOnlyTest

Source/restrict.cpp:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "../3rdParty/Storm/Source/storm.h"
3
4DEVILUTION_BEGIN_NAMESPACE
5
6void 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
23DEVILUTION_END_NAMESPACE

Callers 1

diablo_initFunction · 0.85

Calls 3

GetPrefPathFunction · 0.85
DirErrorDlgFunction · 0.85
removeFunction · 0.85

Tested by

no test coverage detected