added 3dsx support

This adds 3dsx support
std::min(RELOCBUFSIZE, n_relocs)