added 3dsx support

This adds 3dsx support
Please don't return seemingly random numbers. Use enums instead or, if all that the users of this function care about is success or failure, a boolean.