Difference between revisions of "Data directory"

From VDrift
Jump to: navigation, search
m (1 revision: Import from old wiki (on 15 May 2012))
m (Update categories)
Line 12: Line 12:
[[Category:Operating Systems:Linux]]
[[Category:Operating Systems:FreeBSD]]
[[Category:Operating Systems:Mac OS X]]
[[Category:Operating Systems:Windows]]

Latest revision as of 03:31, 1 September 2012

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


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)
Note: On Windows, only locations 1 and 2 are checked.


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.