added 3dsx support

This adds 3dsx support
Actually, given that `m` isn't even used within the loop, I guess the whole loop could be simplified..