Nintendo also sued Galoob over the Game Genie, which Galoob had licensed (purchased?) from Codemasters. Nintendo lost, and then they lost again on appeal. The issue was whether the Game Genie created derivative works.
https://en.wikipedia.org/wiki/Lewis_Galoob_Toys,_Inc._v._Nin....