Nintendo has money... LOADS of money, more money than they know what to do with. You can't quite measure their overall corporate health solely by the success and failure of a single platform. They are one of the last remaining console makers where the term "first party" really carries weight, and they have achieved some measured success in every generation, albeit perhaps not comparatively in the console-share market, but taken on their own, as they prefer to do, each generation of consoles has found it's audience and sold well.