Skip to main content

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

From the file EOSPREFS.DAT to the game. The file holds, in order: Display mode (word); Sound driver (word); Mouse (word). The game: Read once at start-up; without it, the game returns to DOS. In memory: The display mode, sound driver and control mode. Used by: Display driver, ADL or SND files, Mouse or keyboard control.
The game turns it into the display mode, sound driver and control mode.

Organization​

Three little-endian 16-bit words, 6 bytes:

WordSettingValues written by SETUP.EXEEffect in the game
0Display mode3 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
1Sound driver1 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
2Mouse1 "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.

Footnotes​

  1. The program start-up settings. ↩ ↩2

  2. The display mode and the setup program's display choices. ↩

  3. The sound driver. ↩ ↩2

  4. The mouse and control state. ↩