Differences From Artifact [fbd128e000]:
- File src/serverbrowser.mm — part of check-in [b81e2948d7] at 2025-03-15 23:42:51 on branch trunk — Migrate last strings (user: js, size: 7546) [annotate] [blame] [check-ins using]
To Artifact [bb466005e7]:
- File
src/serverbrowser.mm
— part of check-in
[489124a92f]
at
2025-03-16 10:11:39
on branch trunk
— Use one autorelease pool per frame
This way, nowhere else autorelease pools need to be managed. (user: js, size: 7373) [annotate] [blame] [check-ins using]
︙ | |||
176 177 178 179 180 181 182 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | - - - - + + + - - + + - - + - | { return servers[n].name; } void addserver(OFString *servername) { |
︙ | |||
256 257 258 259 260 261 262 | 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | - - + - - - + - | si.protocol = getint(p); if (si.protocol != PROTOCOL_VERSION) si.ping = 9998; si.mode = getint(p); si.numplayers = getint(p); si.minremain = getint(p); sgetstr(); |
︙ | |||
302 303 304 305 306 307 308 | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | - - - + + - | initWithFormat: (si.address.host != ENET_HOST_ANY ? @"%@ [waiting for server response]" : @"%@ [unknown host]\t"), si.name]; // cut off too long server descriptions |
︙ | |||
344 345 346 347 348 349 350 | 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 | - - + - - - - + + - | uchar buf[MAXUPD]; uchar *reply = retrieveservers(buf, MAXUPD); if (!*reply || strstr((char *)reply, "<html>") || strstr((char *)reply, "<HTML>")) conoutf(@"master server not replying"); else { [servers removeAllObjects]; |