Riot Games around 2014(?) had the most profitable (non-mobile?) game in the world with an infamously horrific codebase, even by game standards.