That wouldn’t even be illegal, since they never hit you with a wrench - you just imagined they were about to go xkcd on you
The little expansion slot under the NES has these and other pins. Some of the pins are electrical shorts with pins on the cartridge side.
So to play Japanese games with full audio all you’d need is an expansion cartridge selectively shorting the pins on that expansion port.
That wouldn’t even be illegal, since they never hit you with a wrench - you just imagined they were about to go xkcd on you