[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This section describes how the system driver can be configured with the config file. The default values are stored in `CS/data/config/system.cfg', except the list of plug-in modules, for which no default exists.
The most important part of the system configuration is the list of plug-in modules to load. A plug-in module is loaded with the following line:
System.Plugins.FuncID = PluginName |
Finally, `PluginName' determines which plug-in to load. It is the name of the plug-in under which it is known in the SCF registry. You can see a list of all plug-in modules in `CS/scf.cfg'. The plug-in you load here must be made for the purpose you try to use it for. For example, if you load the sound driver with the `VideoDriver' functionality identifier, the application will not see the module at all and complain that you didn't load a graphics driver.
Note that some modules depend on others. If module A depends on module B, then you must first load B, then A. If you don't do this then module A will usually fail to initialize.
Here is an example of a line from the config file:
System.Plugins.VideoDriver = crystalspace.graphics3d.opengl |
Some functionality identifiers are standardized. This is useful whenever one module depends on another one. For example, the engine depends on the video driver. When the engine wants to access the video driver, it has to know the driver's functionality identifier. Currently this identifier is always `VideoDriver'. In the future it will probably be possible to tell the engine which identifier to use, so the standardized identifiers will not be required anymore. The following identifiers are standardized:
VFS
VideoDriver
crystalspace.graphics3d.software
crystalspace.graphics3d.software.offscreen
crystalspace.graphics3d.opengl
crystalspace.graphics3d.direct3d.dx61
crystalspace.graphics3d.line
Apart from the list of plug-in modules, the following keys are recognized by the system driver:
MouseDriver.DoubleClickTime = <number>
300
.
MouseDriver.DoubleClickDist = <number>
2
.
MouseDriver.MouseSensivity = <float>
1.0
.
Note: For now this is used only in the DOS/DJGPP port.
System.Win32.DebugConsole = <yes/no>
yes
. @@@ FIXME: What does this option control?
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |