Ticket #3498: t3498_escape_oos_path_v1.patch
File t3498_escape_oos_path_v1.patch, 872 bytes (added by , 8 years ago) |
---|
-
source/network/NetTurnManager.cpp
void CNetTurnManager::DisplayOOSError(u3 257 257 msg << "\n\n" << "The current game state is different from the original game state."; 258 258 else 259 259 msg << "\n\n" << "Your game state is " << (expectedHash == hash ? "identical to" : "different from") << " the hosts game state."; 260 260 261 261 if (path) 262 msg << "\n\n" << "Dumping current state to " << utf8_from_wstring(OsPath(*path).string());262 msg << "\n\n" << "Dumping current state to " << CStr(utf8_from_wstring(OsPath(*path).string())).EscapeToPrintableASCII(); 263 263 264 264 LOGERROR("%s", msg.str()); 265 265 266 266 if (g_GUI) 267 267 g_GUI->DisplayMessageBox(600, 350, L"Sync error", wstring_from_utf8(msg.str()));