What crime are you being charged in? Piracy of a game cartridge is a clear crime. Downloading an emulator that interacts with a game cartridge you legally own? Not so clear.
The controlling case is Sony v Bleem, which was ruled in Bleem's favor: distributing (and selling) software to emulate proprietary platforms is legal, full stop.