added 3dsx support

This adds 3dsx support
I suggest renaming this variable to "remaining"