Ryujinx supports cheats, allowing players to modify gameplay elements, unlock items, enable invincibility, or make other alterations in games.
Here’s a guide on how cheats work in Ryujinx and how to set them up:
Ryujinx now has native cheats/runtime mods support!
Cheats in Ryujinx are implemented using cheat files that contain codes specifically created for Switch games. These codes manipulate the game’s memory values, affecting gameplay as intended. Cheats are usually created in formats compatible with Ryujinx and are stored in a specific folder associated with each game.
It implements full support Atmosphere style cheats (except game pausing/resume): https://github.com/Atmosphere-NX/Atmosphere/blob/master/docs/features/cheats.md
A good place to acquire Atmosphere cheats is:
Inside the cheat zip, rar, or other archive format, there is usually a file structure like this:
Cheat_Name\cheats\0123456789ABCDEF.txt
Where 0123456789ABCDEF will vary according to the game and the cheat (this is the build id of the executable the cheat attaches itself to). A cheat can also contain several txt files. Cheats are game-specific and version-specific, they will not work if transferred from one game to another or to an incompatible update of the game.
To install the cheat:
Currently, all cheats are automatically enabled and cannot be disabled, so mixing, for instance, 60, 90 and 120 fps cheats may cause a conflict.
One alternative is to create a directory disabled_cheats in the mod directory and move all unused cheats there. Another one is to prepend something to the file name, for instance off_0123456789ABCDEF.txt as a valid cheat must not have anything but 0123456789ABCDEF.txt in its name.
The .txt files can also contain several cheats that may conflict. To switch off individual cheats inside a .txt file first backup the .txt file to something like bak_0123456789ABCDEF.txt (this will also prevent the backup to be loaded as a cheat). Next, in the .txt file, there will be sections, each with a name within [ ] brackets and filled with sequences of letters and numbers (the code of the cheat), for instance:
[New Super Mario Bros. U Deluxe]
[Start with 99 Lives]
58000000 00CC9860
78000000 0002A1C0
61000000 00000000 00000063
[Time = 999]
58000000 00C88A70
78001000 00000090
64000000 00000000 003E6F00
[Start as Penguin]
58000000 00CC9860
78000000 0002A1C4
61000000 00000000 00000005
[New Super Mario Bros. U Deluxe]
[Start with 99 Lives]
58000000 00CC9860
78000000 0002A1C0
61000000 00000000 00000063
[Start as Penguin]
58000000 00CC9860
78000000 0002A1C4
61000000 00000000 00000005