Preface

Ryujinx comes pre-optimized by default. If a particular menu option is not mentioned in this guide, it should be ignored and should not be changed unless directly instructed by Ryujinx staff.

When requesting support on the Ryujinx official Discord server, you will usually be asked for your log file. With this in mind, Logging should be left at default settings (enabled) for everything except debug logs. Do not enable debug logs unless specifically instructed by Ryujinx staff.

System Requirements

In order to use Ryujinx your computer will need:

  • At least 8GB RAM
  • A video card/GPU that supports OpenGL 4.4 or higher
  • Your Switch keys and either your dumped firmware or recent game cartridge untrimmed XCI
  • Your dumped Nintendo Switch games or homebrew
  • OS-specific dependencies installed

Ryujinx Setup & Configuration Guide Video

Dependencies

Windows

  • The emulator works without any additional software installation.

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

  • brew install gtk+3 sdl2
    (NOTE: if you don’t have brew, open your terminal, and execute the command bellow to install it
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    After that you should be able to use the brew command to install the needed dependencies)

Initial Setup – Placement of prod.keys

NEW: Ryujinx now supports portable mode! If you enable portable mode, note that any time the %appdata% folder is referenced in the guide below, it is referring to your custom data folder.

  1. Now that you’ve downloaded the Ryujinx archive, open it and extract the contents of the publish folder onto your hard drive in the location of your choice.
  2. Navigate to where you extracted the Ryujinx files, and double-click on Ryujinx.exe. This will launch the emulator and you will be met with the following message (don’t worry; this is normal!):
    image
  3. Click OK on the warning box.
    Now that Ryujinx has been launched, the proper folders have been created for you in your %appdata% folder.
  4. Click File at the top left of the Ryujinx window, and then click Open Ryujinx Folder.
    image
  5. Navigate down into the system subfolder and copy your prod.keys file here. The file/folder structure should look like this (JohnDoe substituted for your username):
    image
  6. Close and reopen Ryujinx so that the prod.keys file is validated.
    You’re done installing keys!

Initial Setup Continued – Installation of Firmware

Now that your keys are installed, it’s time to install a firmware. Make sure you have an untrimmed XCI file of a recent game cartridge you dumped, or have compiled your dumped firmware into a ZIP file.

  1. Open Ryujinx. There should be no warning about KEYS.md anymore; if you still get the warning, go back through the prod.keys steps and ensure you have placed the file correctly.
  2. Now that Ryujinx is open, click Tools > Firmware > Install from XCI/ZIP
    image
    This brings up the “Choose the firmware file to open” window.

    image
  3. Using the Ryujinx window, navigate to the location of your dumped XCI file and click Open. You will be asked to confirm whether you want to install the firmware. Make sure your prod.keys are at least as new as the firmware you are installing!
    (Your firmware version number may vary)

    image
  4. Click Yes. You will see a message that the firmware is installing:

    image

    and was successfully installed:
    image
  5. Click OK. If all went well, you will now see your firmware version listed as the “System Version” in the bottom right hand corner of the main Ryujinx window.
    image

Adding Your Games to Ryujinx

You have keys and firmware ready to go. Time to add your games!

With Ryujinx open, click on Options > Settings. This takes you straight to the General tab.
image

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 path field and click Add.
image

2nd Method:
Without typing anything into the path field, click Add.
image\


This brings up the navigation window. Navigate to the folder containing your games (e.g. D:\Switch Games) and click Add.
image

  1. Whichever method you chose, click Save to save the game directory setting.
  2. Your games will now show up in the main Ryujinx window.
    image

Managing Game Updates

Manage game update versions from within Ryujinx

Now that your games are added, you may wish to update your game for various reasons e.g. bugfixes, new content, etc. Ryujinx has built-in functionality to manage which version of the game you want to play.

  1. In the main Ryujinx game list right-click the game you want to apply an update to. Then click Manage Title Updates.
    image

    After clicking Manage Title Updates, you will see the Ryujinx — Title Update Manager menu.
  2. In the Ryujinx — Title Update Manager menu, click Add.
    image
  3. Clicking Add will bring up the navigation menu. Navigate to the location of your game’s update files and select update you want to add to Ryujinx, and click Add.
    image
    This will bring you back to the Ryujinx — Title Update Manager window. You may repeat this for any other game version update files you wish to add to Ryujinx.
  4. In the Ryujinx — Title Update Manager window, select the version of the update you wish to be applied to the game and click Save.
    image
  5. Verify that the proper version number is shown in the main Ryujinx games list window.
    image

    Your game update has now been applied, and you may repeat the process for any other games you wish to apply updates to.

Managing DLC

Manage Downloadable Content for your games

Some games have downloadable content available that you may wish to add to your game. Ryujinx has built-in functionality to add & manage your DLC.

  1. With Ryujinx open, right-click on the game you want to add or manage DLC for and click Manage DLC to bring up the Ryujinx – DLC Manager window.
    image
  2. Within the Ryujinx — DLC Manager window, click Add to open the DLC navigation screen.
    image
  3. Navigate to the location of the DLC file(s) you wish to apply, then double-click the file to automatically add it. Or you may select the file or files, and click Add.
    Note: you may add more than one DLC file at a time!
    image
  4. You will now see your DLC in the Ryujinx – DLC Manager window. Click Save to save your configuration.
    image

    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.

Managing Mods

Quick Start Guide for managing mods

Various game mods are available from enthusiasts & content creators online. Ryujinx supports the following types of mods:

  1. ExeFS Partition Replacement
  2. ExeFS File Replacement
  3. ExeFS Patching
  4. RomFS Partition Replacement
  5. 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:

  1. With Ryujinx open, right-click on the game you wish to manage mods for and click Open Mods Directory.
image

This will open the AppData\Roaming\Ryujinx\mods\contents\<game ID>\ folder.

  1. 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.
image
  1. Copy your mod’s romfs folder or exefs folder into the new folder you created.
image

Input Configuration

Setting up your controls: this part requires close attention, so read carefully!

  1. Plug in the controller(s) that you will be using.
  2. Open Ryujinx and navigate to Options > Settings
    !image
  3. You will now see the Ryujinx – Settings window. Click on the Input tab.
    image

Before proceeding to configure anything, the options on the Input page need some explanation:

Direct Keyboard Access: checking this box emulates a real, physical keyboard being directly connected to a Nintendo Switch via USB. Do not check this box unless you have a specific reason

Enable Docked Mode: checking this box emulates the Nintendo Switch being docked. Docked Mode enables higher resolution, higher FPS, and better graphical fidelity on games that support these features.
If you check this box, you will need to click configure under Player 1 (top left menu item)
If you leave this box unchecked, you will need to click configure under Handheld (bottom right menu item)\

  1. Click Configure under Player 1 if you have enabled Docked Mode, or click configure Handheld if you have not enabled Docked Mode.
    image
  2. You should now be in the Ryujinx — Controller Settings screen. Click on the Input Device dropdown and choose the Xinput controller. If you have connected multiple controllers, choose the one you want to be configured to be P1 in game. If you do not see any Xinput controllers in the list, you will need to use an Xinput wrapper/translator such as x360ce.
    image
  3. After selecting your Xinput controller you should now see a full mapping UI. If you want to map the buttons in a standard Xinput-compatible fashion, there is no need to individually map the buttons. Simply click on the empty Profile dropdown, select Default, and click Load. This populates the buttons with preset mappings for your Xinput-compatible (or Xinput wrapped/translated) controller. Otherwise, click on “Unbound” for each button you want to map, then press the actual button on your controller that you want for the Nintendo Switch controller button you’ve chosen. image
    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.

If you are in Docked Mode and have additional controllers to configure, configure them now under Player 2, Player 3, and so on.

  1. Click Save to save your configuration.

Alternately, you may skip the input UI and edit your config.json file found in %appdata%\ryujinx\

Motion Controls

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:

  1. Launch & configure your favorite cemuhook server application (Betterjoy, DS4Windows, Steam Gyro, etc.) with your bluetooth or wired motion-enabled controller. Leave the application running.
  2. 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.
image
  1. Select your motion controller from the dropdown. It will be listed as “Xinput controller”.
image
  1. 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

image
  • 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!

image
  • 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.

image
  1. 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!

Profiled Persistent Translation Cache

Speed up game loading times with PPTC

In a nutshell, this feature caches translated functions so that they do not need to be translated every time the game loads. This results in a significant reduction of load times –the amount of time between launching a game and arriving at the title screen– for nearly every game.

NOTE: You must launch the game at least twice and let it load to the title screen or beyond before performance improvements are unlocked on the third launch! These improvements are permanent and do not require any extra launches going forward.

To enable Profiled Persistent Translation Cache:

  1. With Ryujinx open, click on Options > Settings
    image
  2. Then navigate to the System tab and check the box marked Enable Profiled Persistent Translation Cache
    image

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:

  1. 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.
  2. Navigate to Cache Management > Open the PPTC directoryimage

To purge the PPTC cache files:

  1. 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.
  2. Navigate to Cache Management > Purge the PPTC cacheimage

Graphics Enhancements

Ryujinx offers a few graphics enhancement options.

  1. 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.
  2. Anisotropic Filtering, which can visibly improve graphic quality. Wikipedia says:
    In layman’s terms, anisotropic filtering retains the “sharpness” of a texture normally lost by MIP map texture’s attempts to avoid aliasing. Anisotropic filtering can therefore be said to maintain crisp texture detail at all viewing orientations while providing fast anti-aliased texture filtering.
  3. 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.
  4. 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.

  1. With Ryujinx open, click Options > Settings
    image
  2. Navigate to the Graphics tab and click the dropdown next to Resolution Scale. Select your desired level of resolution scaling.
    image
    Click Save to save the enhancement setting.

To enable Anisotropic Filtering:

Note: enabling this feature may cause graphical glitches on some games.

  1. With Ryujinx open, click on Options > Settings
    image
  2. Navigate to the Graphics tab and click the dropdown next to Anisotropic Filtering. Set it to your desired level.
    image
    Click Save to save the enhancement setting.

To Manage Shader Cache:
Shader Cache is enabled by default.

To disable Shader Cache:

  1. With Ryujinx open, navigate to Options > Settings.image
  2. Navigate to the Graphics tab and disable shader cache by unchecking the box marked “Enable Shader Cache”image

To purge the shader cache for a particular game:

  1. Right click on a game in the game list and navigate to Cache Management > Purge Shader Cache.image

To view the shader cache directory for a particular game:

  1. Right click on a game in the game list and navigate to Cache Management > Open Shader Cache Directory.image

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. image

Option 2:

  • With your game running, click on the aspect ratio button in the status toolbar at the bottom of the Ryujinx window.
    image

Option 3:

  1. Use Option 1 and select “Stretch to Fit Window” or Option 2 and select “Stretched”.
  2. Simply click and drag your window borders to the size you want!

Portable Mode

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 WARNING: DO NOT PUT YOUR CUSTOM DATA FOLDER INSIDE THE RYUJINX PROGRAM FOLDER. THE RYUJINX PROGRAM FOLDER IS PURGED EACH TIME THE AUTO-UPDATER INSTALLS AN UPDATE:

Option 1: Command-line

  1. 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”image

The command prompt window will become the console window when Ryujinx launches.

Option 2 (Recommended): Custom Shortcut

  1. Right-click on your Ryujinx executable and click Send To -> Desktop Shortcutimage
  2. Locate the new shortcut on your desktop and right-click on it, then click Propertiesimage
  3. 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.image

You can now use this shortcut any time you want to launch Ryujinx in portable mode!

Launch in Fullscreen

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”.

image

Method Two: If you launch Ryujinx from the commandline, add a –fullscreen option. Like so:

image

Post Comment