# Solarus

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/solarus/

Solarus emulates Solarus games. It reads 1 file, none of them required: it starts games without them.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://gitlab.com/solarus-games/solarus](https://gitlab.com/solarus-games/solarus) |
| Version | 2.2.0, stated in [`CMakeLists.txt`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/CMakeLists.txt) |
| Revision | [solarus-games/solarus@86fa2031e130](https://gitlab.com/solarus-games/solarus/-/commit/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b) |
| Run by | [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/), [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [EmuELEC](https://abdess.github.io/retrobios/platforms/emuelec/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/), [Recalbox](https://abdess.github.io/retrobios/platforms/recalbox/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-08-08 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/solarus.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/solarus.json) |
| Cores | solarus |
| Systems | [Solarus games](https://abdess.github.io/retrobios/systems/game-engines/#solarus) |

**Install this emulator's files**

With RetroDECK: the installer finds RetroDECK and its BIOS folder, then downloads only the files Solarus reads there and checks each one.

**Linux:**

Open a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator solarus
```

**Steam Deck:**

Hold power, pick **Switch to Desktop**. Open **Konsole**. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator solarus
```

**Technical notes**

2D action-RPG engine running quests scripted in Lua, built as libsolarus with the solarus-run command-line player and the Qt Solarus Launcher on top. ES-DE runs `solarus-run <rom>` on a single .solarus file, Batocera as `solarus-run -fullscreen=yes -cursor-visible=no -lua-console=no -quit-combo=<hotkey>+<start> -joypad-num<n>=<index> <rom>` off a bbecaf31 pin, RetroDECK ships the v2.0.3 solarus-launcher AppImage.

The quest arrives as the content argument. get_quest_path takes the last non-option argv and otherwise falls back to SOLARUS_DEFAULT_QUEST, which defaults to "." ([`src/core/MainLoop.cpp:108-121`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/MainLoop.cpp#L108-121), [`cmake/AddOptions.cmake:8`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/cmake/AddOptions.cmake#L8), [`include/solarus/core/Common.h:119-123`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/include/solarus/core/Common.h#L119-123)). open_quest mounts that path through PhysFS directly, then tries <path>/data, <path>/data.solarus and <path>/data.solarus.zip, each both relative and under PHYSFS_getBaseDir ([`src/core/QuestFiles.cpp:151-165`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/QuestFiles.cpp#L151-165)), and the quest counts as found once quest.dat resolves ([`src/core/QuestFiles.cpp:228-233`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/QuestFiles.cpp#L228-233)). The rest comes out of that mount: quest.dat and project_db.dat ([`src/core/CurrentQuest.cpp:44`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/CurrentQuest.cpp#L44),[`49`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/CurrentQuest.cpp#L49)), fonts under fonts/ as .png, .ttf, .otf, .ttc or .fon ([`src/core/FontResource.cpp:65-101`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/FontResource.cpp#L65-101)), shaders under shaders/ ([`src/graphics/Shader.cpp:113`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/graphics/Shader.cpp#L113)), tilesets, sprites and music ([`src/entities/Tileset.cpp:156-174`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/entities/Tileset.cpp#L156-174), [`src/graphics/SpriteAnimationSet.cpp:48`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/graphics/SpriteAnimationSet.cpp#L48), [`src/audio/MusicSystem.cpp:136-142`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/audio/MusicSystem.cpp#L136-142)).

Startup reads one file from outside the quest. System::initialize probes SDL_GetBasePath() then SOLARUS_DATADIR_PATH for gamecontrollerdb.txt and hands whichever it finds to SDL through SDL_HINT_GAMECONTROLLERCONFIG_FILE ([`src/core/System.cpp:71-99`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/System.cpp#L71-99)). The GLSL fallbacks are raw string literals in [`include/solarus/graphics/DefaultShaders.h:57`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/include/solarus/graphics/DefaultShaders.h#L57),[`114`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/include/solarus/graphics/DefaultShaders.h#L114), and glad, hqx and snes_spc compile in from third_party/.

Files the engine writes rather than expects: settings.dat and savegames under the quest write directory named in quest.dat ([`src/core/Settings.cpp:183-200`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/Settings.cpp#L183-200),[`274-314`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/Settings.cpp#L274-314), [`src/core/Savegame.cpp:132`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/Savegame.cpp#L132)), the write root from SDL_GetPrefPath ([`src/core/QuestFiles.cpp:721`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/QuestFiles.cpp#L721)), and error.txt under SOLARUS_FILE_LOGGING ([`src/core/Logger.cpp:29-45`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/Logger.cpp#L29-45)). Batocera's 002-pad.patch adds a read of /userdata/system/configs/solarus/pads.ini, which its own generator rewrites at every launch. The editor and launcher subtrees build separately from the root CMakeLists, which adds only cli/, tests/ and third_party/, and their assets are Qt resources compiled into those binaries ([`editor/cmake/AddQtFiles.cmake:47-51`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/editor/cmake/AddQtFiles.cmake#L47-51), [`launcher/cmake/addTarget.cmake:30`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/launcher/cmake/addTarget.cmake#L30)).

## Files

**1 file**: 0 required, 1 optional.

By kind: 1 game data.

In this collection: 1 in repo and 0 missing.

## Game data

### `gamecontrollerdb.txt` optional in repo game data

SDL gamepad mappings applied on top of the built-in table

- System: [Solarus games](https://abdess.github.io/retrobios/systems/game-engines/#solarus)
- Looked up next to the executable first, then under SOLARUS_DATADIR_PATH, share/solarus by default ([`cmake/AddInstallDirs.cmake:14`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/cmake/AddInstallDirs.cmake#L14)). Installed from assets/gamecontrollerdb.txt when SOLARUS_GAMECONTROLLERDB_INSTALL is on, which is the default ([`cmake/AddOptions.cmake:51`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/cmake/AddOptions.cmake#L51)), and carried in the release archives (.gitlab-ci.yml:306). Both probes are guarded by an existence test, and neither hitting leaves SDL on its built-in mappings. The v2.1.4 Windows zip ships this exact file next to solarus-run.exe.

- Size: 586.4 KB, SHA1 ab035b780408
- Collection copy: [`bios/Game Engines/Solarus/gamecontrollerdb.txt`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-ab035b780408)

**Hashes, packages and source**

- SHA1: `ab035b7804089690018318e4a05f9a8fc59421ff`
- MD5: `1e70da4de91be79b9ccf47209a1fc73f`
- Not in the platform's package, so the pack brings it, on: retrodeck
- Source: [`src/core/System.cpp:71-99`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/src/core/System.cpp#L71-99), [`cmake/AddDefines.cmake:44-49`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/cmake/AddDefines.cmake#L44-49), [`cmake/AddInstallTargets.cmake:23-28`](https://gitlab.com/solarus-games/solarus/-/blob/86fa2031e1303aaaf9924a2f03dfdb7b7d1cbf4b/cmake/AddInstallTargets.cmake#L23-28)

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
