added 3dsx support

This adds 3dsx support
The else should be on the same line as the } of the if.