Revert "Convert ReadOnlyTest to fileStream"

This reverts commit ddde5e41a3.
This commit is contained in:
obligaron 2021-05-10 15:09:35 +02:00 committed by Gleb Mazovetskiy
commit 258c6993c7

View file

@ -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());
}