I really don’t understand the aversion to C++. Once you link in malloc and all its friends, bringing in C++ is not much bigger, as long as you don’t do something stupid like use iostream.
C++ ends up being more maintainable if you do not go full out in multiple layers of unnecessary abstraction, just because you get stl containers and strings.
Anyway, how do I get the system temp directory on a platform other than Linux or Windows? I see that the Wii version supports dynamic loading libraries, but there is no system Temp directory on that system, and the Retroarch Cache directory is defined as blank by default.