So? Since when has making backups of the copyrighted stuff that you have the right to use been made illegal?
You could design a system that generates undo info while you're patching. But it's easier to make a full backup copy of the original rom, and have no way to actually reverse the patching process.
So around 30 years now.
Playing the title you backed up and patched is a different matter entirely