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.
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;
Undocumented in source.
joymodifierStrings
string[ubyte] joymodifierStrings;
Undocumented in source.
keymodifierStrings
ubyte[string] keymodifierStrings;
Undocumented in source.

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.

driver
string driver;
Undocumented in source.
inputDevices
InputDeviceData[] inputDevices;

Stores all input devices and keybindings

musicVol
int musicVol;
resolution
string resolution;
scalingQuality
string scalingQuality;
Undocumented in source.
screenMode
string screenMode;
Undocumented in source.
sfxVol
int sfxVol;
Undocumented in source.
threads
int threads;
Undocumented in source.

Meta