Flycast Dojo
Flycast Dojo emulates Sega Dreamcast, Sega NAOMI, Sega NAOMI 2 and 2 more systems. It reads 13 files, 4 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.
The app keeps its data in this folder:
<folder of flycast.exe>/data/
Source: core/windows/winmain.cpp:77-99
~/
~/.flycast/data when ~/.flycast exists. A second running instance appends its number to the folder.
Source: shell/
$XDG_DATA_HOME/flycast-dojo/, else ~/.local/share/flycast-dojo/
Source: core/, core/linux-dist/main.cpp:340
About this profile
Platform details
-
dreamcast:
- bios_size: 2097152
- flash_size: 131072
- ram_size: 16777216
- hle_available: yes
- source_ref:
core/emulator.cpp:368-374
-
naomi:
- bios_size: 2097152
- sram_size: 32768
- ram_size: 33554432
- hle_available: no
- source_ref:
core/emulator.cpp:375-381
-
naomi2:
- bios_size: 2097152
- sram_size: 32768
- ram_size: 33554432
- eram_size: 33554432
- hle_available: no
- source_ref:
core/emulator.cpp:382-389
-
atomiswave:
- bios_size: 131072
- sram_size: 131072
- ram_size: 16777216
- hle_available: no
- source_ref:
core/emulator.cpp:390-396
-
systemsp:
- bios_size: 2097152
- sram_size: 131072
- ram_size: 33554432
- hle_available: no
- source_ref:
core/emulator.cpp:397-403
Technical notes
Fork of Flycast adding rollback and delay netplay, a lobby, spectating,
replay recording and a training mode. The Dojo 7 releases are tagged on the
dojo branch, which carries flyinghead/flycast up to f13d7ad of 2024-05-11
with the Dojo commits on top. The master branch is the older Dojo 6 line.
EmuELEC builds a fixed commit of that Dojo 6 line, d0e47e5 (6.53+)
(EmuELEC packages/sx05re/emulators/flycast-dojo/package.mk:5).
The build names itself with git describe, so the version string is the tag.
ref: .github/, .github/
Every file below is read from the data directory, flat, with no subfolder. The user data directory is <exe>/data on Windows, $XDG_DATA_HOME/flycast-dojo or $HOME/.local/share/flycast-dojo on Linux, the data/ folder of $HOME/.flycast or ~/Library/Application Support/Flycast on macOS, and /flycast-dojo/data on Switch. A missing file is then looked up in the system data directories (on Linux $XDG_DATA_DIRS or /usr/local/share and /usr/share, each with flycast-dojo appended, every $FLYCAST_BIOS_PATH entry, ./ and data/), then in the directory of the loaded game. Boot ROMs, flash and arcade BIOS archives are also searched in every ContentPath entry. ref: core/linux-dist/main.cpp:148-178, 255-296, 337-344, core/windows/winmain.cpp:77-97, shell/apple/emulator-osx/emulator-osx/osx-main.mm:108-137, core/stdclass.cpp:83-105, core/oslib/oslib.cpp:52-81, 88-103
The boot ROM prefix follows the platform (core/hw/flashrom/nvmem.cpp:35-50): Dreamcast -> dc_ NAOMI -> naomi_ NAOMI 2 -> naomi2_ Atomiswave -> aw_ System SP -> no prefix Boot ROM search pattern (core/hw/flashrom/nvmem.cpp:256-272): {prefix}boot.bin, {prefix}boot.bin.bin, {prefix}bios.bin, {prefix}bios.bin.bin Flash search takes a single name, {prefix}nvmem.bin, on Dreamcast only. The arcade platforms keep their flash under the per-game save path, and when it is absent the NAOMI and Atomiswave defaults compiled into the binary are used for the games that have one (core/hw/flashrom/nvmem.cpp:214-254). The aw_ prefix never reaches a filename: the boot ROM search is skipped on Atomiswave, whose BIOS comes from awbios.zip.
Arcade BIOS archives are opened as <name>.zip, then <name>.7z (core/hw/naomi/naomi_cart.cpp:57-75). Each ROM is looked up by CRC32 in the game archive, its parent and the BIOS archive, then by file name in the same order, and the blob of the configured region is taken, else the first one listed. awbios declares no CRC32, so its member is found by name. No hash is checked on an archive. A game with no bios field reads naomi.zip and runs from the flat naomi_boot.bin when the archive is missing. A game that names a BIOS aborts without it (core/hw/naomi/naomi_cart.cpp:190-206).
NAOMI 2 and System SP are platforms of their own: naomi_cart_GetPlatform returns DC_PLATFORM_NAOMI2 for a game whose bios field is naomi2 and DC_PLATFORM_SYSTEMSP for segasp (core/hw/naomi/naomi_cart.cpp:785-806).
UseReios defaults to on, so the Dreamcast boots through reios and reads dc_boot.bin only when HLE BIOS is turned off, to start the BIOS menu without a disc, or for the product ids that force the real BIOS (core/cfg/option.cpp:127, core/emulator.cpp:262-279, 502-526).
The release archives hold the binary and its libraries alone. The default
arcade flash images, the on-screen button sheet and the reios font are
compiled in as resources.
ref: CMakeLists.txt:968-1003, .github/,
.github/
Also read but never user supplied: buttons.png overrides the compiled in
button sheet (core/rend/osd.cpp:155-174), mappings/*.cfg are written by the
input configuration screen (core/input/mapping.cpp:401, 461-463),
flycast.lua is a user script (core/lua/lua.cpp:750-760), and the training
mode runs training/cvs2.lua or training/mvsc2.lua from the config directory
for those two games, otherwise training/<game>.lua from the data directory
(core/dojo/dojo.cpp:287-319).
13 files: 4 required, 9 optional. 1 has an HLE fallback.
By kind: 4 BIOS, 8 BIOS ZIPs and 1 game data.
In this collection: 13 in repo and 0 missing.
Required
Section titled “Required”| File | Contents | Status |
|---|---|---|
naomi.zip
Source and 8 members
| 8 | required for Sega NAOMI in repo BIOS ZIP |
naomi2.zip
Source and 8 members
| 8 | required for Sega NAOMI 2 in repo BIOS ZIP |
awbios.zip
Source and 1 member
| 1 | required for Sammy Atomiswave in repo BIOS ZIP |
segasp.zip
Source and 3 members
| 3 | required for Sega System SP in repo BIOS ZIP |
Optional
Section titled “Optional”| File | Contents | Status |
|---|---|---|
dc_boot.bin
Validation and source
| - | in repo HLE fallback |
dc_nvmem.bin
Validation and source
| - | in repo |
naomi_boot.bin
Validation and source
| - | in repo |
airlbios.zip
Source and 2 members
| 2 | in repo BIOS ZIP |
f355bios.zip
Source and 3 members
| 3 | in repo BIOS ZIP |
f355dlx.zip
Source and 3 members
| 3 | in repo BIOS ZIP |
hod2bios.zip
Source and 3 members
| 3 | in repo BIOS ZIP |
naomi2_boot.bin
Validation and source
| - | in repo |
Game data
Section titled “Game data”| File | Status |
|---|---|
gamecontrollerdb.txt
Source
| optional in repo game data |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start