Hmmm. I seem to be running into limitiations imposed by the OpenXDK crt.
static const class instances are not initialized on startup like they should.
This due to the xbe's not containing .ctors and .dtors sections and lack of handling of those sections in
CODE
WinMainCRTStartup()
Now it would be trivial to add the required code, but without the required sections...
Now this I don't understand; OpenXDK seems to use the standard linker script for compiles,
so why aren't the .ctors and .dtors sections added when using C++ code?
In order to properly support C++, these sections need to be added, and properly manipulated in the
CODE
WinMainCRTStartup()
function in openxdk.c