[Feature request] corruption option in cheats submenu

From my understanding the way action replay and game genie cheats work is that they edit the ram in the memory or they edit the rom in memory. My idea would be to add at feature to be to add 2 features to corrupt the rom:

  1. Corrupt every x amount of bytes of a rom in memory. And be able to spcify start and stop of rom.

For example. Start at byte 30000 and end at end of file. Corrupt every 3000th byte by adding(or any other operator) 20 to it.

  1. Real time corruption: corrupt a random number of bytes at a random byte location. And keep doing that as the rom plays. Example

While (rom is loaded) { Corrupt x number of bytes of the rom in memory at a random location by using a operator on it.

}

For the shits, and funz.

You could do this per core,but not all cores support linear access of emulated ram.(emuram[200] may not equal start of emuramptr + 200)

You would also have to take endian and bit count into consideration.(Emulating a sega genesis on arm or x86 requires all non byte memory accesses to be byte reversed.)

Whats better would be a configurable corrupter with a tiny programming language that is compiled for retroarch,then you make your own corruption program(per game) for it…