Data, Savefiles and Storage
Eglantine stores its user data under a data directory. On Windows, an existing user folder beside the executable takes priority; otherwise, data is stored in %APPDATA%\eglantine. On Linux and other non-Android Unix systems, an existing user folder in the current working directory takes priority; otherwise, data, config, and cache use their respective XDG directories under eglantine. The Qt app's File → Open Eglantine Folders → Open Root Data Folder menu item opens the active data directory.
Data locations
| Data | Default location relative to the data directory | Description |
|---|---|---|
| NAND | nand/ | Emulated system and user NAND data, including installed content and saves. |
| SDMC | sdmc/ | Emulated SD card contents. |
| Mods | load/ | Mod and LayeredFS directories. |
| Configuration | config/ | Configuration files. |
| Cache | cache/ | Cache data, including shaders. |
| Logs | log/ | Log files. |
The Qt File → Open Eglantine Folders menu also provides Open NAND Folder, Open SDMC Folder, Open Mod Folder, and Open Log Folder. Save data is normally stored under nand/user/save/; the game's context menu item Open Data Folders → Open Save Data Location opens the user-save area. NAND and SDMC paths can be changed in Emulation → Configure → System → Filesystem. The Save Data path is configurable separately; by default, it follows the NAND path.
On Windows, the source and destination directories used by Migrate Save Data can contain Unicode characters.
Save data, installed content, keys, and configuration are stored in the user data directories. Back up the relevant folders before moving, replacing, or deleting them. Keep the emulator closed while copying data to avoid incomplete backups.
Portable mode
Create a directory named user in the appropriate location to use a portable data directory:
| Platform | Portable directory |
|---|---|
| Windows | user/ beside the executable |
| Linux and other non-Android Unix systems | user/ in the current working directory |
The portable directory takes priority over the normal user data location. On Unix systems, its config/ and cache/ directories are also used for configuration and cache files. Android instead uses the supplied app data path.
Cheats
Cheats can be placed in either of these ways:
Method 1
- In the game list, right-click the game and choose Open Data Folders → Open Mod Data Location.
- Create a file named
cheat_mycheat.txt(the filename must start withcheat_to be recognized as a cheat). - Write the cheat into the text file.
This method does not account for build IDs, so cheats for previous builds will not be automatically filtered out.
Method 2
- In the game list, right-click the game and choose Open Data Folders → Open Mod Data Location.
- Create a folder, for example
My cheat. - Inside it, create a
cheatsfolder. - Inside
cheats, create a file named with the build ID in hexadecimal, lowercase, and with a.txtextension; for example,1234fbcde0000000.txt. - Write the cheat into the text file.
To delete a cheat, delete its file or folder.
Save files
To open a game's save data, right-click the game in the game list and choose Open Data Folders → Open Save Data Location. The general user-save area can also be opened from File → Open Eglantine Folders → Open NAND Folder, then navigating into user/save/.
Maintaining a library
ZFS
One way to keep a library of game archives is to use a ZFS pool compressed with zstd:
sudo zfs create zroot/switch
sudo zfs set compression=zstd zroot/switch
The dataset is available at /zroot/switch and can be added as a game directory. Ensure that Eglantine has permission to access its contents.