easysettings

Undocumented in source.

Members

Functions

deleteSettings
void deleteSettings(string name, string filename, string subdir)

Deletes settings files for the specified app that are handled by this library. Also removes directory if empty.

getSettingsPaths
auto getSettingsPaths(string name, string subdir, string filename, bool writable)

Get a list of paths where settings files were found.

loadSettings
auto loadSettings(string name, string filename, string subdir)

Load settings. Will create settings file by default. Searches all system-wide settings dirs as well as the user's settings dir, and loads the first file found.

loadSubdirSettings
auto loadSubdirSettings(string name, string subdir)

Loads all settings files from a subdirectory, with the assumption that each file has the same format.

safeSave
void safeSave(string path, string data)

Safely save a text file. If something goes wrong while writing, the new file is simply discarded while the old one is untouched

saveSettings
void saveSettings(T data, string name, string filename, string subdir)

Saves settings. Uses user's settings dir.

Meta