# P5R Switch Mods on PC Emulator (Yuzu/RyujiNX)

## Getting Required Files

In order to run the game on a PC emulator, you will need the following files:

* prod.keys
* title.keys
* an NSP/XCI dump of the game
* a [Nintendo Switch firmware](https://darthsternie.net/switch-firmwares/)

Due to copyright and the potential for piracy, these cannot be provided directly, but you can either search online or dump them yourself from your Switch console.

### Dumping Keys

See [Launching CFW via RCM ](/getting-started/persona-5-royal-switch-mod-support/p5r-mods-on-switch-console-cfw.md#launching-cfw-via-rcm)for how to access RCM mode and launch a payload.

* Use [TegraRCMGUI](https://github.com/eliboa/TegraRcmGUI/releases) to launch the [lockpick homebrew](https://github.com/dezem/Lockpick_RCM/releases) and dump your keys.

### Dumping the NSP/XCI

See [Launching CFW via RCM ](/getting-started/persona-5-royal-switch-mod-support/p5r-mods-on-switch-console-cfw.md#launching-cfw-via-rcm)for how to boot into CFW and launch homebrew.

1. Download [`nxdumptool.nro`](https://github.com/DarkMatterCore/nxdumptool/releases/download/v1.1.15/nxdumptool.nro) and place it in the `/switch/` folder of your SD card.
2. Launch the NXDumpTool homebrew via the Album icon on the home menu.
3. Select P5R and dump as an `.NSP` file to SD card. \
   This can take quite some time. Make sure you have an extra 15 GB of space available on the SD.
4. If the `.NSP` file was split up due to the SD Card being formatted as FAT32...
   1. Download and run [HxD](https://mh-nexus.de/en/downloads.php?product=HxD20).
   2. Go to `Tools` > `File Tools` > `Concatenate`
   3. Select each of the files in the NSP folder and make sure they're listed in order.
   4. Save the `.NSP` file somewhere on your PC.

## Setting up your Emulator

1. Download [RyujiNX ](https://ryujinx.org/download)or [Yuzu](https://yuzu-emu.org/downloads/), and extract with [7-zip](https://www.7-zip.org/).
2. Follow the [Setup & Configuration Guide](https://github.com/Ryujinx/Ryujinx/wiki/Ryujinx-Setup-&-Configuration-Guide) for RyujiNX,\
   or the [Quickstart Guide](https://yuzu-emu.org/help/quickstart/) and [FAQ](https://yuzu-emu.org/wiki/faq/#how-do-i-use-mods-or-cheats) for Yuzu, which cover...
   1. How to add your keys to the emulator
   2. How to install the firmware
   3. How to load the game + any updates
   4. How to add mods to the game

## Extracting Files

In order to create your own mods, or merge existing mods using a Mod Manager, you'll want a copy of the game's files. The files are about 15 GB in total, so make sure you have enough space free.

1. Go to `Options` > `Settings` > `General` and add the directory containing your P5R `.NSP` or `.XCI` to the Game Directories list.
2. Right click the game in the list and choose `Extract Data` > `RomFS`.
3. Please be patient as this can take a very long time!

## Installing Mods

See the following section for mod installation directions.

{% content-ref url="/pages/2RGKMoyGv2G4Wqd4fe34" %}
[Persona 5 Royal (Switch) Mod Support](/getting-started/persona-5-royal-switch-mod-support.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shrinefox.com/getting-started/persona-5-royal-switch-mod-support/p5r-switch-mods-on-pc-emulator-yuzu-ryujinx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
