Android and MAME screenshot tutorial / 2026-08-09

Organize MAME screenshots on Android with snapshot_directory and snapname

Choose a writable screenshot directory and a collision-safe naming template without confusing snapshots with input recordings or video capture.

9 minute setupOfficial MAME 0.289 snapshot semantics; storage access and option exposure vary by Android port

Organize MAME screenshots on Android with snapshot_directory and snapname

Point snapshot_directory at a location the installed Android port can write, then keep %g for the machine name and %i for an increasing index in snapname. MAME 0.289 warns that omitting %i makes each new snapshot overwrite the previous one. Take two screenshots, confirm distinct PNG files, and restore defaults if the wrapper rejects either option.

Do this in order

  1. 01

    Record the Android port, embedded MAME version, current snapshot_directory, snapname, and one authorized test machine short name.

  2. 02

    Choose a writable location through the wrapper's supported storage picker or documented configuration; do not guess an app-private path.

  3. 03

    Use a snapname template that retains %g and %i, such as the upstream default %g/%i, so machines separate and indices advance.

  4. 04

    Restart, take two screenshots of the same machine, and confirm two distinct PNG files appear below the effective snapshot directory.

  5. 05

    Check orientation and view before forcing snapsize; MAME does not automatically swap a forced width and height for vertical systems.

  6. 06

    Preserve the effective options and file names as the receipt, then restore defaults if the wrapper rewrites or ignores unsupported values.

Decision and diagnostic table

SymptomLikely boundaryNext action
No file appearsDirectory access or wrapper optionVerify effective path and write grant
Only one file remains%i omitted from snapnameRestore an indexed template
Wrong machine folder%g omitted or replacedInclude machine substitution
Vertical image is stretchedForced snapsize/viewReturn to auto, then select deliberately

Directory and naming are independent

snapshot_directory chooses the root. snapname builds the relative path and file stem beneath it. Prove both with two captures instead of changing several output options at once.

An index prevents silent replacement

MAME documents %i as the increasing snapshot index. Without it, the next capture can replace the previous file, which looks like a failed screenshot feature when the directory is actually working.

Screenshots are not replay evidence

A PNG records one rendered moment. An INP records emulated input, while AVI/WAV/MNG record different output streams. Choose the artifact that answers the task.

First-party sources

Related guides