Browse Source

Revert "Convert ReadOnlyTest to fileStream"

This reverts commit ddde5e41a3.
pull/1916/head
obligaron 5 years ago committed by Gleb Mazovetskiy
parent
commit
258c6993c7
  1. 5
      Source/restrict.cpp

5
Source/restrict.cpp

@ -17,11 +17,12 @@ namespace devilution {
void ReadOnlyTest()
{
const std::string path = paths::PrefPath() + "Diablo1ReadOnlyTest.foo";
auto fileStream = CreateFileStream(path.c_str(), std::ios::in | std::ios::out);
if (fileStream->fail()) {
FILE *f = fopen(path.c_str(), "wt");
if (f == nullptr) {
DirErrorDlg(paths::PrefPath().c_str());
}
fclose(f);
RemoveFile(path.c_str());
}

Loading…
Cancel
Save