241
DF Modding / Re: Dwarf Therapist (LATEST 0.6.12 4/12/12 see first post)
« on: May 04, 2012, 08:45:14 am »that make the "Set nickname" option unavailable to linux users. I don't know why it is this way and don't have a linux machine available right now to check it.Because gcc stores strings as a pointer, while MSVC stores them as a length plus a union of 16 bytes of storage and a pointer. This means that on Linux, to store a string requires doing memory allocation (which DT cannot do; it cannot call malloc as it is not in-process), but on Windows short strings (up to 15 bytes) can be forced into the union. (Note that if there is already a value and it is longer than 15 bytes, forcibly changing it to a short string will cause memory to leak. But as DF already leaks memory like a sieve anyway, it's unlikely anyone will notice.)
There is anyone who knows why this option is disabled in linux or willing to try to compile the DT code without the ifndef lines?