# Lightspark

> 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/lightspark/

Lightspark emulates Adobe Flash.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/lightspark/lightspark](https://github.com/lightspark/lightspark) |
| Version | 0.10.0, stated in [`CMakeLists.txt`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/CMakeLists.txt) |
| Revision | [lightspark/lightspark@c24accae28d6](https://github.com/lightspark/lightspark/commit/c24accae28d677406bc5047ad7e0778a39bfd27b) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/) |
| Profiled | 2026-08-08 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/lightspark.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/lightspark.json) |
| Cores | lightspark |
| Systems | Adobe Flash |

**Technical notes**

Open source implementation of the Flash player, playing SWF files of any ActionScript version, as a standalone application or as a browser plugin. The ActionScript built-in classes are implemented in C++ under src/scripting/flash, so no external class library is read. ES-DE runs the binary as `lightspark --fullscreen <rom>`, Batocera as `lightspark -fs -s local-with-networking <rom>` off a 0.8.7 pin.

Startup reads nothing. The two GLSL shaders sit in the tree as src/lightspark.frag and src/lightspark.vert but the preprocessor pulls them into string literals, "directly include shader source to avoid filesystem access" ([`src/backends/rendering.cpp:1059-1062`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/rendering.cpp#L1059-L1062),[`1079-1082`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/rendering.cpp#L1079-L1082)), which is also how 0.8.7 builds them. The face given to nanoVG for text is Roboto Medium, decoded at runtime from a base85 array in the binary ([`src/launcher.cpp:1567`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/launcher.cpp#L1567), [`src/platforms/engineutils.cpp:500-502`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/platforms/engineutils.cpp#L500-L502)), and the launcher icon face is embedded the same way ([`src/launcher.cpp:1094-1096`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/launcher.cpp#L1094-L1096),[`1333`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/launcher.cpp#L1333)). resources/openfonticons/OpenFontIcons.ttf and resources/ErrorConstants.xml are build inputs, the second feeding the errorconstants.{h,cpp} generator ([`tools/errorgen:20`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/tools/errorgen#L20)).

Fonts named by the content go through fontconfig, which answers with whatever face the host has installed: FcFontMatch then FcPatternGetString(FC_FILE) hands a path straight to nvgCreateFont ([`src/backends/cachedsurface.cpp:147-168`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/cachedsurface.cpp#L147-L168)). No name, path, size or hash is fixed anywhere, README.md:81-84 marks fontconfig itself optional, and an unmatched family leaves nanoVGFontID at -1 and falls back to the embedded face.

dataFileRead is the only reader of LS_DATADIR and has no callers, at this commit and at 0.8.7 ([`src/parsing/textfile.cpp:74-106`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/parsing/textfile.cpp#L74-L106)). fontPath holds "TimesNewRoman.ttf" on Windows ([`src/backends/rendering.cpp:102`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/rendering.cpp#L102)) but reaches only cairo_select_font_face, which takes a family name rather than a path, and only under ENABLE_CAIRO ([`src/backends/rendering.cpp:1294`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/rendering.cpp#L1294)), left FALSE by CMakeLists.txt.

Files the player writes rather than expects: lightspark.conf, an INI carrying the cache directory and prefix whose absence leaves the hardcoded defaults ([`src/backends/config.cpp:82-115`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/config.cpp#L82-L115)), launcher.xml holding the recent entries ([`src/launcher.cpp:1299-1310`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/launcher.cpp#L1299-L1310)), and .sol SharedObjects under the data directory ([`src/platforms/engineutils.cpp:849-914`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/platforms/engineutils.cpp#L849-L914)). application.xml, extension.xml and the library.swf files under META-INF/AIR/extensions belong to the AIR package being run ([`src/main.cpp:149`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/main.cpp#L149), [`src/platforms/engineutils.cpp:785-800`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/platforms/engineutils.cpp#L785-L800)), and crossdomain.xml is fetched from remote hosts ([`src/backends/security.cpp:353`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/security.cpp#L353),[`1025`](https://github.com/lightspark/lightspark/blob/c24accae28d677406bc5047ad7e0778a39bfd27b/src/backends/security.cpp#L1025)).

No BIOS or firmware files required.

## 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.
