/** * @file restrict.cpp * * Implementation of functionality for checking if the game will be able run on the system. */ #include "all.h" #include "../3rdParty/Storm/Source/storm.h" DEVILUTION_BEGIN_NAMESPACE /** * @brief Check that we have write access to the game install folder */ 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