added 3dsx support

This adds 3dsx support
We have the `bswap` functions in common.h for this.