| 263 | } |
| 264 | |
| 265 | static void MPConnection_FailConnect(cc_result result) { |
| 266 | static const cc_string reason = String_FromConst("You failed to connect to the server. It's probably down!"); |
| 267 | cc_string msg; char msgBuffer[STRING_SIZE * 2]; |
| 268 | String_InitArray(msg, msgBuffer); |
| 269 | |
| 270 | if (result) { |
| 271 | String_Format3(&msg, "Error connecting to %s:%i: %e" _NL, &Server.Address, &Server.Port, &result); |
| 272 | Logger_Log(&msg); |
| 273 | } |
| 274 | MPConnection_Fail(&reason); |
| 275 | } |
| 276 | |
| 277 | static void MPConnection_TickConnect(struct ScheduledTask* task) { |
| 278 | cc_bool writable; |
no test coverage detected