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.
- The directory specified in the environment variable VDRIFT_DATA_DIRECTORY
- The subdirectory "data" of the current working directory (the location from which VDrift was run)
- 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.