0ad/source/simulation2
Ykkrosh dcf5a2667f CLogger: Use cppformat instead of sys_vswprintf.
sys_vswprintf relies on platform-specific printf implementations, which
vary widely between platforms (in handling of truncation, return values,
use of %s/%S/%hs/%ls for mixing char and wchar_t strings, etc) and are
therefore a pain.

Use cppformat's fmt::sprintf instead, which has very similar syntax to
sprintf but is more C++ish and is portable.

Also, wchar_t is stupid, so use char* strings (which are expected to be
UTF-8) in CLogger. This creates a bit of a pain with changing all
callers to convert to char* strings, but that's their fault for not
using UTF-8 already.

Refs #3011.

This was SVN commit r16182.
2015-01-22 20:30:05 +00:00
..
components Improve template code style for the Decay component. 2015-01-21 21:45:05 +00:00
docs Happy New Year! :D 2015-01-02 14:22:23 +00:00
helpers Fix compilation failure with GCC and C++98/03. 2015-01-01 23:57:04 +00:00
scripting Exact stack rooting for CParamNode 2014-11-09 11:08:53 +00:00
serialization Adds Serialization support for ES6 Maps. 2014-09-20 17:14:53 +00:00
system Fix the initial exploration of territories, which shouldn't be performed in Atlas. 2015-01-08 22:36:13 +00:00
tests CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
MessageTypes.h Exact stack rooting for simulation message type conversions. 2014-08-09 20:02:49 +00:00
Simulation2.cpp Remove code duplication and some cleanup. 2014-12-30 18:21:02 +00:00
Simulation2.h Remove code duplication and some cleanup. 2014-12-30 18:21:02 +00:00
TypeList.h Add a new Visibility component that will eventually allow scripted components and mods to influence an entity's visibility. 2014-11-04 20:53:25 +00:00