You usually need cheat files compatible with the emulator and game. Formats vary, so check the emulator’s documentation.