diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index 8f580a8..bee2da6 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -525,7 +525,7 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorFileName; do { - debug(L"Loading file '" + Utils::ToWString(FName) + L"' to '" + PathToSaveTo.wstring() + L"'"); + debug(beammp_wide("Loading file '") + Utils::ToWString(FName) + beammp_wide("' to '") + beammp_fs_string(PathToSaveTo) + beammp_wide("'")); TCPSend("f" + ModInfoIter->FileName, Sock); std::string Data = TCPRcv(Sock); @@ -558,12 +558,12 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorHash) { - error(L"Failed to write or download the entire file '" + PathToSaveTo.wstring() + L"' correctly (hash mismatch)"); + error(beammp_wide("Failed to write or download the entire file '") + beammp_fs_string(PathToSaveTo) + beammp_wide("' correctly (hash mismatch)")); Terminate = true; } } while (fs::file_size(PathToSaveTo) != ModInfoIter->FileSize && !Terminate);