Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 855 Bytes

Data_directory.md

File metadata and controls

17 lines (11 loc) · 855 Bytes

VDrift must be able to access its game data to run. This data is stored in the data directory.

Location

VDrift looks in several places to find its game data at startup. This is the order in which the different locations are checked.

  1. The directory specified in the environment variable VDRIFT_DATA_DIRECTORY
  2. The subdirectory "data" of the current working directory (the location from which VDrift was run)
  3. A directory named at compile-time via the environment variable DATA_DIR (usually set by the SCons build setup)

Validation

To ensure that it has the correct location, VDrift checks for the file data/settings/options.config. If this file can't be found in any of the above locations, VDrift exits immediately.

Category:Files