Time to pass laws, this shit keeps happening. If you sold a game over $x that completely ceases to be playable within X years, you should be forced to open-source your code.
Won't bother guessing at what the best numbers should be, hardly matters as I'm sure lobbyists would defang the whole thing as much as possible.