LayeredFS is a feature implemented into the emulators and custom Switch firmware for easy modification of game files. It changes the game files on the fly, allowing us to mod games without having to modify the ROM. To create a patch on PC, only modded files and emulator is needed.
To create a mod directory, right click on the game in emulator menu and pick the option to open mod directory.
Ryujinx's submenu
Yuzu's submenu
The directory that opens in explorer (file manager) is the folder in which the modded files will be placed. To create a base for new mods, create a new folder, you can name it whatever you want.
Once the folder is created, open it and inside it, create another folder named romfs. This is needed to tell the emulator that you want to edit game's romfs files.
Path for mod location depending on emulator used should look like one of this points:
C:\Users\%username%\AppData\Roaming\yuzu\load\01001DC01486A000\ENGPatch\romfs
C:\Users\%username%\AppData\Roaming\Ryujinx\mods\contents\01001dc01486a000\ENGPatch\romfs
Example of mods folders names
Modded files should be placed inside romfs folder and must have the original names and/or path which they had after extraction. For example, the file containing the translated script must be named script_text.mrg. Custom fonts should have the same filename as the original fonts and must be inside ja, ja2 and ja3 folders.
Modifying files is explained in the other parts of the wiki.
Inside of the mod folder (example)
For yuzu, there is an option to disable/enable mods without having to remove them, unlike Ryujinx, by right-clicking on the game icon and navigating to Properties > Add-Ons, Yuzu users have ability to pick which mods the emulator will be using.
Yuzu's mods view. Click on tick box to enable/disable mod and accept your changes by clicking "Ok".
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use. We do not support piracy by any means.