ConfigurationProfile

Handles configuration files, like key configurations,

Constructors

this
this()

Initializes a basic configuration profile. If vaultPath doesn't have any configfiles, restores it from defaults.

this
this(string filename, string defaultFile)

Initializes a basic configuration profile with user supplied values. If vaultPath doesn't have any configfiles, restores it from defaults.

Members

Functions

autodetectVideoModes
void autodetectVideoModes(int display)
Undocumented in source. Be warned that the author may not have intended to support it.
getNumOfVideoModes
size_t getNumOfVideoModes()
Undocumented in source. Be warned that the author may not have intended to support it.
joymodToString
string joymodToString(ushort s)

Converts JoyModifier to human-readable string.

keymodToString
string keymodToString(ubyte keymod)

Converts a key modifier value to human-readable string.

loadBindings
void loadBindings(InputHandler ih)

Loads inputbindings into a handler.

restore
void restore()

Restores configuration profile from a file.

store
void store()

Stores configuration profile on disk.

stringToKeymod
ubyte stringToKeymod(string s)

Converts a key modifier string to machine-readable value

useVideoMode
void useVideoMode(int mode, OutputScreen window)
Undocumented in source. Be warned that the author may not have intended to support it.
videoModeToString
string videoModeToString(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getVaultPath
string getVaultPath()
Undocumented in source. Be warned that the author may not have intended to support it.
restoreDefaults
void restoreDefaults(string filename)

Restores the default configuration. Filename can be set if not the default name was used for the file.

setVaultPath
void setVaultPath(char* developer, char* application)

Sets the the path where configuration files and etc. will be stored. If ../_debug/ folder exists, it'll be used instead for emulation purposes.

Static variables

devicetypeStrings
string[Devicetype] devicetypeStrings;

Device type strings

joymodifierStrings
string[ubyte] joymodifierStrings;

Joy modifier strings, used for reading config files

keymodifierStrings
ubyte[string] keymodifierStrings;

Key modifier strings, used for reading config files

Variables

ancillaryTags
Tag[] ancillaryTags;

Stores ancillary tags to be serialized into the config file

appName
string appName;

Name of the application. Can be used to check e.g. version safety.

appVers
string appVers;

Version of the application. Can be used to check e.g. version safety.

audioBufferLen
int audioBufferLen;

Audio buffer length

audioDevice
string audioDevice;

Audio device, null for auto

audioDriver
string audioDriver;

Audio driver, null for auto

audioFrameLen
int audioFrameLen;

Audio frame length

audioFrequency
int audioFrequency;

Audio sampling frequency

gfxdriver
string gfxdriver;

Graphics driver

inputDevices
InputDeviceData[] inputDevices;

Stores all input devices and keybindings

musicVol
int musicVol;

Music volume (0-100)

resolution
string resolution;

Resolution, or window size in windowed mode

scalingQuality
string scalingQuality;

Scaling quality (what scaler it uses)

screenMode
string screenMode;

Graphics screen mode

sfxVol
int sfxVol;

Sound effects volume (0-100)

threads
int threads;

Rendering threads (kinda deprecated)

Meta