Fix running game in non-ANSI path

#480
This commit is contained in:
Wojtek Figat
2023-10-12 22:29:48 +02:00
parent 677cd4e382
commit 74a69b8f13
4 changed files with 21 additions and 18 deletions

View File

@@ -394,8 +394,7 @@ bool EditorUtilities::UpdateExeIcon(const String& path, const TextureData& icon)
// - icon/cursor/etc data
std::fstream stream;
StringAsANSI<> pathAnsi(path.Get());
stream.open(pathAnsi.Get(), std::ios::in | std::ios::out | std::ios::binary);
stream.open(path.Get(), std::ios::in | std::ios::out | std::ios::binary);
if (!stream.is_open())
{
LOG(Warning, "Cannot open file");