This article assumes you have already hacked your Nintendo Switch and dumped your Nintendo Switch keys(prod.keys) and firmware file(s). This guide illustrates using aproperly dumped recent game cartridge as an untrimmed XCI file toinstall a firmware directly to Ryujinx. It is also possible to installfirmware from a folder or ZIP file. You may also follow this firmware dumping guide.
If you haven't already downloaded Ryujinx, get the latest versionfrom: https://ryujinx.org/download.
Ryujinx checks for updates automatically at startup. You can disable this feature if you wish in Options > Settings . You may also check for updates manually by navigating to Help > Check for Updates.
Table of Contents
Preface
System Requirements
Dependencies
Initial Setup - Placement of prod.keys
Initial Setup Continued - Installation of Firmware
Adding Your Games to Ryujinx
Managing Game Updates
Managing DLC
Managing Mods
Managing Cheats
Managing User Profiles
Input Configuration
Motion Controls
Amiibo Emulation
Profiled Persistent Translation Cache
Graphics Enhancements
Portable Mode
Launch in Fullscreen
Ryujinx comes pre-optimized by default. If a particular menu option isnot mentioned in this guide, it should be ignored and should not bechanged unless directly instructed by Ryujinx staff.
When requesting support on the Ryujinx official Discord server, youwill usually be asked for your log file. With this in mind, Loggingshould be left at default settings (enabled) for everything except debuglogs. Do not enable debug logs unless specifically instructed by Ryujinxstaff.
In order to use Ryujinx your computer will need:
At least 8GB RAM
A video card/GPU that supports OpenGL 4.5 or higher, or Vulkan.
Your Switch keys and either your dumped firmware or recent gamecartridge untrimmed XCI
Your dumped Nintendo Switch games or homebrew
A 64-bit Operating System
OS-specific dependencies installed
Windows
- Windows 10 RS4 (Redstone 4, version 1803) or newer is required.
- Graphics drivers must be up to date. On laptops with 2 different graphics cards, both iGPU and dGPU drivers must be updated.
Linux
copy the command into your terminal emulator of choice and execute it
Archlinux based distros:
sudo pacman -S sdl2 openal
Ubuntu based distros:
sudo apt-get install libsdl2-2.0 libsdl2-dev libalut-dev
Fedora:
sudo dnf install SDL2-devel openal-soft
MacOS
Ryujinx supports portable mode! If you set up portable mode, note that any time the %appdata% folder is referenced in the guide below, it is referring to your custom data folder.
Now that you've downloaded the Ryujinx archive, open it andextract the contents of the publish folder onto your hard drive inthe location of your choice.
Navigate to where you extracted the Ryujinx files, anddouble-click on Ryujinx.exe. This will launch the emulator and youwill be met with the following message (don't worry; this isnormal!):
Click OK on the warning box.
Now that Ryujinx has been launched, the proper folders have beencreated for you in your %appdata% folder.Click File at the top left of the Ryujinx window, and then clickOpen Ryujinx Folder.
Navigate down into the system subfolder and paste your prod.keys filehere. The file/folder structure should look like this (JohnDoesubstituted for your username):
Close and reopen Ryujinx so that the prod.keys file is validated.
You're done installing keys!
Now that your keys are installed, it's time to install a firmware. Makesure you have an untrimmed XCI file of a recent game cartridge youdumped, or have compiled your dumped firmware into a ZIP file.
Open Ryujinx. There should be no warning about KEYS.md anymore; ifyou still get the warning, go back through the prod.keys steps andensure you have placed the file correctly.
Now that Ryujinx is open, click Tools > Firmware > Install fromXCI/ZIP
This brings up the "Choose the firmware file to open" window.Using the Ryujinx window, navigate to the location of your dumpedXCI file and click Open. You will be asked to confirm whether youwant to install the firmware. Make sure your prod.keys are at leastas new as the firmware you are installing!
(Your firmware version number may vary)Click Yes. You will see a message that the firmware isinstalling:
See AlsoRyujinx Firmware v18.0.0 Download (Latest Version) - Old ROMsRyujinx Firmware: Wie du deine Switch emulieren und verbessern kannst - Zeit zu Zockenand was successfully installed:
Click OK. If all went well, you will now see your firmware versionlisted as the "System Version" in the bottom right hand corner ofthe main Ryujinx window.
You have keys and firmware ready to go. Time to add your games!
With Ryujinx open, click on Options > Settings. This takes youstraight to the General tab.
There are two different methods in which you can add a Game Directory in this window.
1st Method:
Type the absolute path of the folder containing your games into the pathfield and click Add.
2nd Method:
Without typing anything into the path field, click Add.\
This brings up the navigation window. Navigate to the folder containingyour games (e.g. D:\Switch Games) and click Add.
Whichever method you chose, click Save to save the gamedirectory setting.
Your games will now show up in the main Ryujinx window.
Manage game update versions from within Ryujinx
Now that your games are added, you may wish to update your game forvarious reasons e.g. bugfixes, new content, etc. Ryujinx has built-infunctionality to manage which version of the game you want to play.
In the main Ryujinx game list right-click the game you want toapply an update to. Then click Manage Title Updates.
After clicking Manage Title Updates, you will see the Ryujinx --Title Update Manager menu.
In the Ryujinx -- Title Update Manager menu, click Add.
Clicking Add will bring up the navigation menu. Navigate to thelocation of your game's update files and select update you want toadd to Ryujinx, and click Add.
This will bring you back to the Ryujinx -- Title Update Managerwindow. You may repeat this for any other game version update filesyou wish to add to Ryujinx.In the Ryujinx -- Title Update Manager window, select the versionof the update you wish to be applied to the game and click Save.
Verify that the proper version number is shown in the main Ryujinxgames list window.
Your game update has now been applied, and you may repeat theprocess for any other games you wish to apply updates to.
Manage Downloadable Content for your games
Some games have downloadable content available that you may wish to addto your game. Ryujinx has built-in functionality to add & manage yourDLC.
With Ryujinx open, right-click on the game you want to add ormanage DLC for and click Manage DLC to bring up the Ryujinx - DLCManager window.
Within the Ryujinx -- DLC Manager window, click Add to open theDLC navigation screen.
Navigate to the location of the DLC file(s) you wish to apply, thendouble-click the file to automatically add it. Or you may select thefile or files, and click Add.
Note: you may add more than one DLC file at a time!You will now see your DLC in the Ryujinx - DLC Manager window.Click Save to save your configuration.
Note: always drill down to see the proper status of the DLC .nca file you are managing. Checking and unchecking the .nca file is the way to enable and disable the DLC. The parent container (.nsp file) shows unchecked by default, even if the DLC is enabled.
Repeat this process, if you wish, for any other games you would like to manage DLC for.
Quick Start Guide for managing mods
Various game mods are available from enthusiasts & content creators online. Ryujinx supports the following types of mods:
- ExeFS Partition Replacement
- ExeFS File Replacement
- ExeFS Patching
- RomFS Partition Replacement
- RomFS File Replacement
For an in-depth explanation of the mods implementation & advanced usage options in Ryujinx, check the description in the original PR here.
To enable mods:
- With Ryujinx open, right-click on the game you wish to manage mods for and click Open Mods Directory.
This will open the AppData\Roaming\Ryujinx\mods\contents\<game ID>\
folder.
- Create a subfolder under the game id folder with an appropriate name conveying the mod you will be using. For instance, you might name the folder "Lana" if you were using a mod to add a Lana skin to Mario Kart 8 Deluxe.
- Copy your mod's romfs folder or exefs folder into the new folder you created.
Mods can also be placed in the AppData\Roaming\Ryujinx\sdcard
folder if the mod has been packaged for real hardware (usually indicated with an "atmosphere" folder as the top directory). With Ryujinx open, right-clicking on the game you wish to manage SD mods for and clicking Open Atmosphere Mods Directory will open the AppData\Roaming\Ryujinx\sdcard\atmosphere\contents\<game ID>
folder where the romfs/exefs folders are located.
Ryujinx now has native cheats/runtime mods support!
It implements full support Atmosphere style cheats (except game pausing/resume):https://github.com/Atmosphere-NX/Atmosphere/blob/master/docs/features/cheats.md
Installation of Atmosphere Cheats
Two good places to acquire Atmosphere cheats are:
- https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/tree/master/Cheats (general switch cheats)
- https://yuzu-emu.org/wiki/switch-mods/ (emulator-specific mods such as high FPS, ultrawide, etc...)
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:
- Open Ryujinx, right-click the game you wish to install the cheat and select to open its
Mod directory
; - A directory like this will open:
Ryujinx\mods\contents\XXXXXXXXXXXXXXXX\
,XXXXXXXXXXXXXXXX
will be the id of the chosen game; - Extract the cheat archive to the mod directory, keeping the cheat name:
Ryujinx\mods\contents\XXXXXXXXXXXXXXXX\Cheat_Name\cheats\<all the txt files>
.
Activating/Deactivating cheats
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 00CC986078000000 0002A1C061000000 00000000 00000063[Time = 999]58000000 00C88A7078001000 0000009064000000 00000000 003E6F00[Start as Penguin]58000000 00CC986078000000 0002A1C461000000 00000000 00000005
To disable the time cheat, just remove its section and the code:
[New Super Mario Bros. U Deluxe][Start with 99 Lives]58000000 00CC986078000000 0002A1C061000000 00000000 00000063[Start as Penguin]58000000 00CC986078000000 0002A1C461000000 00000000 00000005
Ryujinx offers the ability to use multiple, customizable user profiles. WARNING: Save data is specific to each user profile so if you delete a profile, the save data under that profile is also deleted.
To edit a user profile:
- With Ryujinx open, but no game running, click on Options > Manage User Profiles
Now in the Manage User Profiles window, you will see the default RyuPlayer profile. This is the default profile that comes with Ryujinx and cannot be deleted as it contains all of the original save data for your games. You may, however, rename it and change the picture to something else, if you like.
To rename a profile, simply select it and type in the new text.
To change the profile image, select the profile in the list and click Change Profile Image.
You will then be prompted to select from either a custom image, or from one of the many avatars provided in the firmware.
If you choose to import an image: supported formats are png
, bmp
, and jpg
. You can use the image you want, but it will be resized to 256x256 pixels, so using a square image is recommended.
If you choose to use a built-in firmware avatar, click on Select Firmware Avatar
In the Manage Accounts - Avatar window, select the avatar you want, and choose a background color. When finished, click Choose to make it the profile's image.
To add a new profile:
With Ryujinx open, but no game running, click on Options > Manage User Profiles
Click on the Add New Profile button at the bottom left corner of the window.
- A window will pop up asking you to name the new Profile. Enter the desired name of the new profile, and click OK.
- You will now be prompted to choose the profile image. Follow step 3 from the user profile editing instructions above.
That's it!
Setting up your controls: this part requires close attention, so readcarefully!
Plug in the controller(s) that you will be using.
Open Ryujinx and navigate to Options > Settings
!You will now see the Ryujinx - Settings window. Click on theInput tab.
Before proceeding to configure anything, the options on the Input pageneed some explanation:
Direct Keyboard Access: checking this box emulates a real, physicalkeyboard being directly connected to a Nintendo Switch via USB. Donot check this box unless you have a specific reason
Enable Docked Mode: checking this box emulates the Nintendo Switchbeing docked. Docked Mode enables higher resolution, higher FPS, andbetter graphical fidelity on games that support these features.
If you check this box, you will need to click configure under Player1 (top left menu item)
If you leave this box unchecked, you will need to click configure underHandheld (bottom right menu item)\
Click Configure under Player 1 if you have enabled DockedMode, or click configure Handheld if you have not enabled DockedMode.
You should now be in the Ryujinx -- Controller Settings screen.Click on the Input Device dropdown and choose the Xinputcontroller. If you have connected multiple controllers, choose theone you want to be configured to be P1 in game. If you do not seeany Xinput controllers in the list, you will need to use an Xinputwrapper/translator such asx360ce.
After selecting your Xinput controller you should now see a fullmapping UI. If you want to map the buttons in a standardXinput-compatible fashion, there is no need to individually map thebuttons. Simply click on the empty Profile dropdown, selectDefault, and click Load. This populates the buttons with presetmappings for your Xinput-compatible (or Xinput wrapped/translated)controller. Otherwise, click on "Unbound" for each button you wantto map, then press the actual button on your controller that youwant for the Nintendo Switch controller button you'vechosen.
You may continue tweaking the settings to your liking, or bindingeach button from scratch if you want a fully custom button layout.
NOTE: while the default Deadzones are 0.10, we recommendincreasing your Deadzones to at least 0.20 in order to avoidunwanted joystick drift.
If you are in Docked Mode and have additional controllers toconfigure, configure them now under Player 2, Player 3, and so on.
- Click Save to save your configuration.
Alternately, you may skip the input UI and edit your config.json filefound in %appdata%\ryujinx\
Motion Controls
Ryujinx offers the ability to use motion controls with motion-enabled controllers such as a Switch Pro Controller, Joycons, Playstation DS4, smartphones with motion support, Steam controller, and others.
To use motion controls in Ryujinx:
Launch & configure your favorite cemuhook server application (Betterjoy, DS4Windows, Steam Gyro, etc.) with your bluetooth or wired motion-enabled controller. Leave the application running.
In Ryujinx, navigate to Options > Settings > Input tab and select which controller you are configuring. Remember: if you are in docked mode, configure Player 1. If you are in Handheld mode, configure the Handheld controller.
- Select your motion controller from the dropdown. It will be listed as "Xinput controller".
- Configuration options:
- If you have already configured your controller's input buttons to your liking and only need to configure motion controls, check the "Enable Motion Controls" box and fill in the following information:
Controller Slot: the controller slot # your motion controller is configured as in your cemuhook server application. Default is "0"Gyro Sensitivity: 100% (you may adjust this to suit)Server Host: the IP address of the computer being used to host the cemuhook server. 127.0.0.1 is localhost/the same computer running Ryujinx.Server Port: 26760
- Alternately, you can simply click on the empty Profile dropdown, select Default, and click Load. This populates the buttons with preset mappings and also fills in the motion control settings with recommended defaults. You may continue tweaking the settings to your liking, or binding each button from scratch if you want a fully custom button layout.
NOTE: while the default Deadzones are 0.10, we recommend increasing your Deadzones to at least 0.20 in order to avoid unwanted joystick drift.Make sure to check the "Enable Motion Controls" box!
- Paired Joycons extra options:
If you set your controller type to Joycon Pair, an option called "Mirror Input" becomes available. This is useful for games in which both Joycons are connected to a Joycon grip and are moving together. If you enable this checkbox, the first Joycon's motion will be used for both Joycons.
- Click Save to save your configuration.
Repeat steps 2 through 5 for any other motion controllers you wish to configure. If you have more than one, make sure to choose the respective slot # for each controller!
All Amiibo are able to be virtually scanned within the emulator, as long as you are actively connected to the internet. No files or dumps are required!
To scan an Amiibo:
- While playing a game that supports Amiibo, either navigate to the area where Amiibo scanning is expected, or press/hold the correct button to enable the Amiibo scan prompt (this site has a basic list of supported games and what benefits are provided by each: https://amiibo.life/games
- Click the "Actions" menu header, then click "Scan an Amiibo"
- Choose the Amiibo you want from the Amiibo Series and Character dropdowns. Note: only the Amiibo that have content for the game you are currently playing are shown in this window. All the same, if you'd like to see all Amiibo you may check the box that says "Show All Amiibo".
Addendum: In The Legend of Zelda: Breath of the Wild, you may continually scan Amiibo as many times as you wish by checking the box labeled "Hack: Use Random Tag Uuid" box.
Speed up game loading times with PPTC
In a nutshell, this feature caches translated functions so that they donot need to be translated every time the game loads. This results in asignificant reduction of load times --the amount of time betweenlaunching a game and arriving at the title screen-- for nearly everygame.
NOTE: You must launch the game at least twice and let it loadto the title screen or beyond before performance improvements areunlocked on the third launch! These improvements are permanent and donot require any extra launches going forward.
PPTC (Profiled Persistent Translation Cache) is now enabled by default. To disable it:
With Ryujinx open, click on Options > Settings
Then navigate to the System tab and uncheck the box markedEnable Profiled Persistent Translation Cache
From time to time you may wish to examine or purge your PPTC cache files if you are experiencing PPTC-related issues.
To open the PPTC cache file location:
With Ryujinx open, right-click the game in the game list whose PPTC cache files you wish to view. This will bring up a pop-up menu.
Navigate to Cache Management > Open the PPTC directory
To purge the PPTC cache files:
With Ryujinx open, right-click the game in the game list whose PPTC cache files you wish to purge. This will bring up a pop-up menu.
Navigate to Cache Management > Purge the PPTC cache
Ryujinx offers a few graphics enhancement options.
Resolution Scaling, which offers a much sharper image with little to no impact to performance. Resolution scaling can increase image quality much more noticeably than Anisotropic Filtering. Ryujinx's resolution scaling implementation allows native, 2x, 3x, 4x, or even custom ratios for upscaling.
Anisotropic Filtering, which can visibly improve graphic quality.Wikipedia says:
In layman's terms, anisotropic filtering retains the "sharpness" ofa texture normally lost by MIP map texture's attempts to avoidaliasing. Anisotropic filtering can therefore be said to maintain crisptexture detail at all viewing orientations while providing fastanti-aliased texture filtering.Shader Cache, which stores onto disk the shaders that have already been compiled, negating the need to compile them again. This feature is highly sought after as it significantly reduces stuttering and FPS drops on subsequent plays of a particular game making for a smoother, more enjoyable gameplay experience. Note: Shader Cache is enabled by default.
Aspect Ratio Options, which allow you to adjust the width-to-height ratio to your liking. Note: these options may give your game a stretched or squeezed appearance unless you are using mods that change the expected aspect ratio of the game.
To enable Resolution Scaling:
Note: Enabling this feature may cause graphical glitches on some games.
These settings may be changed in-game on the fly! On a standard 1080p display, 2x resolution scaling is recommended.
- With Ryujinx open, click Options > Settings
- Navigate to the Graphics tab and click the dropdown next to Resolution Scale. Select your desired level of resolution scaling.
Click Save to save the enhancement setting.
To enable Anisotropic Filtering:
Note: enabling this feature may cause graphical glitches on somegames.
With Ryujinx open, click on Options > Settings
Navigate to the Graphics tab and click the dropdown next toAnisotropic Filtering. Set it to your desired level.
Click Save to save the enhancement setting.
To Manage Shader Cache:
Shader Cache is enabled by default. There are no good reasons to disable it other than for testing purposes.
Disabling this setting is strongly discouraged. However, if you absolutely must disable it:
With Ryujinx open, navigate to Options > Settings.
Navigate to the Graphics tab and disable shader cache by unchecking the box marked "Enable Shader Cache"
In some rare cases, a shader cache might become corrupted and crash when compiling shaders on boot. To solve this you'll have to purge the shader cache for that particular game:
Right click on a game in the game list and navigate to Cache Management > Purge Shader Cache.
To view the shader cache directory for a particular game:
Right click on a game in the game list and navigate to Cache Management > Open Shader Cache Directory.
To adjust your aspect ratio:
Option 1:
- With Ryujinx open, navigate to Options > Settings and click on the Graphics tab. Click on the Aspect Ratio dropdown and adjust the ratio to your liking.
Option 2:
- With your game running, click on the aspect ratio button in the status toolbar at the bottom of the Ryujinx window.
Option 3:
Use Option 1 and select "Stretch to Fit Window" or Option 2 and select "Stretched".
Simply click and drag your window borders to the size you want!
If you wish, you may use a custom folder location for all Ryujinx data (as opposed to keeping it in its default location: %appdata%). This is done via the command-line or, more conveniently, a custom shortcut. In the future, the ability to configure custom data folders may be added to the GUI.
NOTE: You must manually create the custom folder first before using portable mode! After enabling portable mode, you will need to copy your prod.keys file and any desired game data/save data from its original location to the new data folder.
To enable Portable Mode
Option 1: (Recommended) Create a "portable" subfolder
- Create a subfolder in the Ryujinx program base directory called "portable". This automatically enables portable mode and utilizes this "portable" folder for system folder contents (keys, firmware, PPTC/shader caches, etc.).
Option 2: Command-line
Open a command prompt, navigate to the location of the Ryujinx executable and type the following command: ryujinx.exe -r d:[folderpath]. For example, if your custom folder was d:\ryujinxdata, your command would be the following, without quotes (THIS IS ONLY AN EXAMPLE. USE WHATEVER CUSTOM FOLDER NAME YOU PREFER):"ryujinx.exe -r d:\ryujinxdata"
The command prompt window will become the console window when Ryujinx launches.
Option 3: Custom Shortcut
Right-click on your Ryujinx executable and click Send To -> Desktop Shortcut
Locate the new shortcut on your desktop and right-click on it, then click Properties
In the Properties window, click into the Target field and add a space onto the end of the existing command. Then add "-r [folderpath]" without quotes where [folderpath] is your own custom data folder full path, and click OK. For example, if your custom data folder was d:\ryujinxdata, the addition you would paste into the target field would be "-r d:\ryujinxdata" without the quotes.
Note: On MacOS, the command would be as follows, without the quotes:"/Applications/Ryujinx.app/Contents/MacOS/Ryujinx -r /path/to/custom/ryujinx/folder"
You can now use this shortcut any time you want to launch Ryujinx in portable mode!
Ryujinx can automatically launch games in fullscreen mode. You can enable this functionality in one of two ways:
Method One: In Ryujinx, click on Options, then check the box marked "Start Games in Fullscreen Mode".
Method Two: If you launch Ryujinx from the commandline, add a --fullscreen option. Like so: