The data that will be saved to the settings file.
The subdirectory of the settings dir to save the config to. Created if nonexistent.
The filename the settings will be saved to.
The subdirectory that the settings will be saved in.
struct Settings { bool blah; string text; string[] texts; } saveSettings(Settings(true, "some words", ["c", "b", "a"]), "testapp", "settings", "subdir"); assert(loadSettings!Settings("testapp", "settings", "subdir") == Settings(true, "some words", ["c", "b", "a"]));
Saves settings. Uses user's settings dir.