Skip to content

Commit

Permalink
Remove no-longer-needed ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Jan 28, 2022
1 parent f8c74fe commit e87beb8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/openrct2/core/File.cpp
Expand Up @@ -61,12 +61,7 @@ namespace File

std::vector<uint8_t> ReadAllBytes(u8string_view path)
{
#if defined(_WIN32) && !defined(__MINGW32__)
auto pathW = String::ToWideChar(path);
std::ifstream fs(pathW, std::ios::in | std::ios::binary);
#else
std::ifstream fs(u8string(path), std::ios::in | std::ios::binary);
#endif
if (!fs.is_open())
{
throw IOException("Unable to open " + u8string(path));
Expand Down

0 comments on commit e87beb8

Please sign in to comment.