Settings (EOSPREFS.DAT)
File formats · Field reference · Schema
In brief
EOSPREFS.DAT holds the three settings chosen with the setup program,
SETUP.EXE: the display mode, the sound driver and whether to use the
mouse. The game reads it once at start-up and never writes it; without it,
the game prints "Please run SETUP before running The Legend of Darkmoon."
and returns to DOS.1
Organization
Three little-endian 16-bit words, 6 bytes:
| Word | Setting | Values written by SETUP.EXE | Effect in the game |
|---|---|---|---|
| 0 | Display mode | 3 VGA ("MCGA/VGA") or 5 EGA ("256K EGA"), the two choices of its menu; its table also holds 6, "Tandy 16 Color" | Selects the display driver and the .PAL or .EGA palettes.2 |
| 1 | Sound driver | 1 AdLib ("Adlib or Sound Blaster"), 2 PC speaker ("Built in speaker"), 0 none ("No Sound") | Selects the ADL or SND files; any nonzero value turns the "Sounds" option on.3 |
| 2 | Mouse | 1 "Yes, I would like to use a mouse", 0 "No, I would rather not use a mouse" | 0 makes the game play with the keyboard only, as it does when no mouse is detected.4 |
The setup program's summary also names a sound value of 3, "Tandy speaker", which the game plays on the Tandy sound chip, but no menu of the program stores it.3 The game checks none of the values.
Reading the file
The game reads the file once, when the program starts, and never writes it. It stores the first two words as the display mode and the sound driver, and turns the "Sounds" option on from the second. It then sets the display mode, starts the sound driver, and sets the mouse control byte from the third word.1 The effects in the table above follow from these values.
Example
The reference file:
0000 03 00 display mode 3: VGA
0002 01 00 sound driver 1: AdLib
0004 01 00 use the mouse
Sources
Locations refer to the game executable reference; the file is identified in the file inventory.