Skip to content

Commit

Permalink
Fix: Remove workaround for old bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN committed Apr 23, 2024
1 parent 785f89f commit 0789b9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ static std::optional<FileHandle> FioFOpenFileSp(const std::string &filename, con
buf = _searchpaths[sp] + _subdirs[subdir] + filename;
}

#if defined(_WIN32)
if (mode[0] == 'r' && GetFileAttributes(OTTD2FS(buf).c_str()) == INVALID_FILE_ATTRIBUTES) return nullptr;
#endif

auto f = FileHandle::Open(buf, mode);
#if !defined(_WIN32)
if (!f && strtolower(buf, subdir == NO_DIRECTORY ? 0 : _searchpaths[sp].size() - 1) ) {
Expand Down

0 comments on commit 0789b9a

Please sign in to comment.