Ruffle
Ruffle emulates Adobe Flash.
About this profile
Technical notes
Flash Player and Adobe AIR runtime written in Rust, playing SWF files of any
ActionScript version, as a desktop binary or as a WebAssembly browser build.
Versioned releases sit next to the nightlies: Batocera 43.1 compiles the
nightly-2026-01-31 tag and installs ruffle_desktop as ruffle, RetroDECK pulls
the rs.ruffle.Ruffle Flathub build. ES-DE runs it as ruffle --fullscreen <rom>, Batocera as ruffle <rom>, RetroBat as ruffle.exe --graphics <renderer> --force-align -q <quality> <rom>, RetroDECK as ruffle --graphics vulkan --config /. The
ActionScript class library is compiled by build_playerglobal into
playerglobal_avm1.swf and playerglobal_avm2.swf and linked into the binary
from OUT_DIR (core/src/avm1/globals.rs:82, core/src/avm2/globals.rs:548), so
startup reads nothing. Locale texts, wgsl shaders, the window icon and the
OpenH264 license are embedded the same way (desktop/src/gui/locale.rs:7-12,
desktop/src/app.rs:490, render/,
desktop/src/gui/movie.rs:44,
desktop/).
H.264 video is the one external dependency. external_video is a default
feature and pulls ruffle_video_external with openh264
(desktop/Cargo.toml:27,84,92), and enable_openh264 defaults to true
(desktop/src/preferences.rs:291,316). OpenH264Codec::load first dlopens the
system sonames libopenh264.so.8, libopenh264.so.2.7.0 and libopenh264.so on
Linux, then falls back to <cache>/ruffle/video/ and fetches the Cisco binary
from ciscobinary.openh264.org bz2-compressed into it
(video/,113-137,177-195,
desktop/src/player.rs:237-244). Whether the library was already there or was
just downloaded, its SHA-256 is checked before loading and the size is read
only to format the mismatch message
(video/), and WelsGetCodecVersion must
answer 2.7.0 exactly (video/,157-170). The
cache root comes from dirs::cache_dir(), ~/.cache/ruffle by default, and
--cache-directory moves it (desktop/src/cli.rs:31-35,148). Without the library
the player still starts: ExternalVideoBackend wraps SoftwareVideoBackend, so
H.263, Screen Video and VP6 keep decoding and only H.264 streams fail
(video/,51-70,73-82,117-126).
Text uses system fonts. fontdb::Database::load_system_fonts() fills the
database at startup (desktop/src/app.rs:459-460), and both the Flash device
fonts and the egui menu bar resolve family names against it and take whatever
face the host answers with (desktop/,
desktop/), device font names case-insensitively.
The face is memory-mapped and parsed
by Ruffle's own rasterizer unless preferences.toml sets device_font_renderer
to freetype, which routes Linux builds through FreetypeFontRenderer instead;
the freetype default feature only compiles that branch, the preference
selects it (desktop/,463-507,509-539,
desktop/, desktop/Cargo.toml:84). The families
asked for are Times New Roman, Arial, Courier New and their metric-compatible
substitutes, plus the CJK, Hebrew, Arabic and Thai faces
(desktop/src/player.rs:365-418, desktop/), and
on Unix fontconfig sorts the fallback chain
(desktop/,556-648). No name, path, size or hash is
fixed anywhere. The compiled-in Noto Sans subset sits behind the default_font
feature, which the web and exporter crates enable and the desktop build does
not (core/src/player.rs:86-87, core/Cargo.toml:81,94, web/Cargo.toml:63-65,
exporter/Cargo.toml:16, desktop/Cargo.toml:23), so on the desktop an
unmatched family leaves the run without that face rather than falling back
to a bundled one.
Files the player writes rather than expects: preferences.toml, bookmarks.toml
and recents.toml under --config, each defaulted when absent
(desktop/), .sol SharedObjects under --save-directory
(frontend-utils/, desktop/src/cli.rs:137-138),
and the log file under <cache>/ruffle/log (desktop/src/main.rs:165-176).
ruffle-bundle.toml is the manifest inside a .ruf bundle, which is content
alongside the .swf rather than a runtime input
(frontend-utils/, frontend-utils/).
mms.cfg is not implemented, the name appears only in an AVM2 error string
(core/).
0 files: 0 required, 0 optional. 9 more files come with the app.
Comes with the app
Section titled “Comes with the app”| File |
|---|
libopenh264-2.7.0-linux64.8.soOpenH264 2.7.0 decoder library, Linux x86_64
Hashes, validation and source
|
libopenh264-2.7.0-linux-arm64.8.soOpenH264 2.7.0 decoder library, Linux aarch64
Hashes, validation and source
|
libopenh264-2.7.0-linux-arm.8.soOpenH264 2.7.0 decoder library, Linux arm
Hashes, validation and source
|
libopenh264-2.7.0-linux32.8.soOpenH264 2.7.0 decoder library, Linux x86
Hashes, validation and source
|
libopenh264-2.7.0-mac-arm64.dylibOpenH264 2.7.0 decoder library, macOS aarch64
Hashes, validation and source
|
libopenh264-2.7.0-mac-x64.dylibOpenH264 2.7.0 decoder library, macOS x86_64
Hashes, validation and source
|
openh264-2.7.0-win64.dllOpenH264 2.7.0 decoder library, Windows x86_64
Hashes, validation and source
|
openh264-2.7.0-win32.dllOpenH264 2.7.0 decoder library, Windows x86
Hashes, validation and source
|
openh264-2.7.0-win-arm64.dllOpenH264 2.7.0 decoder library, Windows aarch64
Hashes, validation and source
|
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