DOSBox-X includes a comprehensive save and load state system that snapshots the complete emulator state — CPU registers, memory contents, hardware state, and the current program — to a file that can be restored at any time. This feature goes well beyond what original DOS hardware could offer, making it easy to create checkpoints before a difficult section of a game, quickly switch between projects, or preserve a session for later without shutting down. Up to 100 numbered save slots are available, and you can also save to arbitrary file paths.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/joncampbell123/dosbox-x/llms.txt
Use this file to discover all available pages before exploring further.
Saving and Loading States
Using Keyboard Shortcuts
The fastest way to save and load is with host-key shortcuts. The host key defaults to F11 on Windows and F12 on Linux and macOS (or whichever key is assigned in the mapper).| Action | Shortcut |
|---|---|
| Save to current slot | Host key + S |
| Load from current slot | Host key + L |
| Previous save slot | Host key + , (comma) |
| Next save slot | Host key + . (period) |
Using the Menu
You can also access save and load operations through the Main menu:- Main → Save State — saves to the currently selected slot
- Main → Load State — loads from the currently selected slot
- Main → Select Save Slot — choose which of the 100 slots is active
Configuration Options
All save-state settings live in the[dosbox] section of your configuration file.
| Option | Default | Description |
|---|---|---|
saveslot | 1 | Default save slot number (1–100). This is the slot used by the host key shortcuts and menu save/load actions |
savefile | (empty) | Path to a specific save file. When set, this file is used instead of a numbered slot |
saveremark | true | When saving, prompt the user to enter a text remark or note to annotate the save state |
forceloadstate | false | If true, load a saved state even when DOSBox-X detects a mismatch in version, machine type, program name, or memory size |
autosave | (empty) | Auto-save configuration string (see below) |
Auto-Save
Theautosave option enables periodic background saving without any user interaction. It is configured with a compact string syntax that lets you set the interval, the range of slots to rotate through, and optionally override the slot range for specific programs.
Syntax
<interval>: Seconds between saves. Prefix with-to configure auto-save without starting it immediately.<slot-or-range>: A single slot number (e.g.5) or a range (e.g.1-20). Saves rotate through the range.PROGRAM:<slot-or-range>: Override slot range when a specific program name is running. Up to 9 program overrides are supported.
Examples
Save every 30 seconds using slots 1–20
Save every 30 seconds using slots 1–20
Different slot ranges per program
Different slot ranges per program
- Every 10 seconds, save to slots 11–20 by default
- While
DOOM.EXEis running, save to slots 21–30 instead - While
EDIT.COMis running, always save to slot 31
Configure without auto-starting
Configure without auto-starting
- means DOSBox-X sets up the 60-second auto-save configuration but does not begin saving automatically when it starts. You can activate it later from the menu.Auto-save uses the same slot files as manual saves. If you auto-save to a slot you also use for manual saves, the auto-save will overwrite it on the next interval.
Save File Locations
- Numbered Slots
- Custom Save Files
Numbered save slots (1–100) are stored in DOSBox-X’s default save directory, which is determined by the platform:
Slot files are named in the format
| Platform | Default save directory |
|---|---|
| Windows | %APPDATA%\DOSBox-X\ |
| Linux | ~/.config/dosbox-x/ |
| macOS | ~/Library/Application Support/dosbox-x/ |
dosbox-x.sav01 through dosbox-x.sav100 (zero-padded).To override the save directory for all slots, launch DOSBox-X with the -savedir command-line option:Compatibility and Version Matching
Save states encode the DOSBox-X version, machine type, and memory size at the time of saving. When loading, DOSBox-X checks that these match the current configuration. To override the compatibility check and force-load a save state regardless of mismatches:forceloadstate from the Main menu without editing the configuration file. Use this option carefully — loading an incompatible state may cause emulation instability or crashes.
Remarks and Annotations
Whensaveremark = true, DOSBox-X displays a text input dialog each time you save a state, allowing you to type a short note such as “Before final boss” or “Chapter 3 start”. These remarks are stored inside the save file and displayed in the slot selector, making it easy to identify saves when you have many slots in use.
To skip the remark prompt and save silently, set:
Tips and Best Practices
Use slot ranges for auto-save
Assigning a range (e.g.
autosave = 30 81-100) dedicates slots 81–100 to auto-saves, leaving slots 1–80 free for manual checkpoints. This prevents auto-saves from overwriting your deliberate saves.Save before risky operations
Save to a manual slot before attempting something that might crash the guest OS (such as installing a driver in Windows 9x or running an untested program). You can restore the working state instantly if things go wrong.
Keep versions in sync
If you update DOSBox-X, existing save states from older versions may not load without
forceloadstate. Back up your save files before upgrading if you have long-running sessions you want to preserve.Use savefile for portable saves
Setting
savefile to a path inside your game directory keeps the save state co-located with the disk image, making it easier to archive or share a complete emulated environment.