added 3dsx support

This adds 3dsx support
Prefer static const globals to defines, as they will show up in debuggers and won’t take any more memory at runtime.