VOGONS

Common searches


settings

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by D0SGAM3MUSiC

User metadata
Rank Newbie
Rank
Newbie

hi

I'm looking for a way to reload all settings of the config file without having to close dosbox. Now i have to shut down dosbox, to edit the file, save it, restart dosbox to reload all saved settings.

Is there another way to do this without shut down/restart dosbox?

if not I would like to request this as a new feature.

thx

Pacman didn't affect us as kids. Otherwise we would all be phreaking around in darkened rooms and listening to repetitive electronic music while munching magical pills and that makes no sense at all.
OR does it ...?

Reply 2 of 2, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

From the DosBox README located inside the DosBox directory:

CONFIG [-writeconf] [-writelang] localfile CONFIG -set "section property=value" CONFIG -get "section property" […]
Show full quote

CONFIG [-writeconf] [-writelang] localfile
CONFIG -set "section property=value"
CONFIG -get "section property"

CONFIG can be used to change or query various settings of DOSBox
during runtime. It can save the current settings and language strings to
disk. Information about all possible sections and properties can
be found in section 11 (The Config File).

-writeconf localfile
Write the current configuration settings to file. "localfile" is
located on the local drive, not a mounted drive in DOSBox.
The configuration file controls various settings of DOSBox:
the amount of emulated memory, the emulated soundcards and many more
things. It allows access to AUTOEXEC.BAT as well.
See section 11 (The Config File) for more information.

-writelang localfile
Write the current language settings to file. "localfile" is
located on the local drive, not a mounted drive in DOSBox.
The language file controls all visible ouput of the internal commands
and the internal dos.

-set "section property=value"
CONFIG will attempt to set the property to new value. At this moment
CONFIG can not report whether the command succeeded or not.

-get "section property"
The current value of the property is reported and stored in the
environment variable %CONFIG%. This can be used to store the value
when using batch files.

Both "-set" and "-get" work from batch files and can be used to set up your
own preferences for each game.

Examples:
1. To create a configfile in your current directory:
config -writeconf dosbox.conf
2. To set the cpu cycles to 10000:
config -set "cpu cycles=10000"
3. To turn ems memory emulation off:
config -set "dos ems=off"
4. To check which cpu core is being used.
config -get "cpu core"

Thread closed.

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline