Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2022-04-04 00:00:00Z and 2022-04-05 00:00:00Z
Avatar
This allows 0.8 to have different standard maps than 0.7 without needing to run a separate instance of the version server. Closes #1122. The client sends the CLIENT_VERSION together with the maplist request to the version server. https://github.com/teeworlds/teeworlds/blob/26d24ec061d44e6084b2d77a9b8a0a48e354eba6/src/game/version.h#L9 The version server can send different map versions for different client versions. The default version is 0.7.x if the request packet does not contain...
Avatar
#### io_read_all
  • Allocate necessary memory for the entire file at once by first getting its length, instead of reallocating memory multiple times while reading the file.
  • Do not zero-terminate the loaded data, as io_read_all_str is supposed to be used for zero-terminated strings instead.
  • Return pointer to result or 0 on error for more convenient usage.
#### io_read_all_str
  • Allocate necessary memory for the entire file at once by first getting its length, instead of rea...
Exported 2 message(s)