If it uses SDL (99% of the libre games), you don't have to rewrite anything.
i.e. much less than 1% of all existing games.
At least in order to be playable under Linux. Said this, the 99% of the games from that era will run perfectly fine with OssPD->Pipewire (install OSSPD, just run the game) and 32bit SDL1 libraries.