diff options
author | garret <garret@airmail.cc> | 2022-06-17 22:45:44 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-06-17 22:52:44 +0100 |
commit | d636f1b008fa1dfc665b9eff2764002202631e13 (patch) | |
tree | 1857ae6327895f8f731df06f7cc1239f179f42a4 /modules/garret/README.simpleconf.md | |
parent | a86e96d96b1c018a91a8d656e9e85e8f2507c120 (diff) | |
download | aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.tar.gz aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.tar.bz2 aegisub-scripts-d636f1b008fa1dfc665b9eff2764002202631e13.zip |
nuke old and bad config stuff
This reverts commit 52f3a086f2ad7a3bbc9b8f8225a99e9e99120613.
It also manually bandages over the places where it was ripped out.
it was never a good idea in the first place
Diffstat (limited to 'modules/garret/README.simpleconf.md')
-rw-r--r-- | modules/garret/README.simpleconf.md | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/modules/garret/README.simpleconf.md b/modules/garret/README.simpleconf.md deleted file mode 100644 index 8e0569c..0000000 --- a/modules/garret/README.simpleconf.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: simpleconf.lua's Fine Manual -lang: en-GB -... - -# simpleconf.lua's Fine Manual - -read it -## Usage -### Loading config files - -Synopsis: `config = simpleconf.get_config([config_file, defaults])` - -`@config_file` (`string`) - - Path of the file to load. - -`@defaults` (`table`) - - A table containing your default settings. - -`config` (table) - - Contains config values. - -Both values are optional. - -If the file and the defaults are present, it loads the defaults, then overwrites their values with those of the file. - -If the file is present, but not the defaults, it just loads the contents of the file. - -If the file isn't present, but the defaults are, it just loads the defaults, and you're using it wrong. - -If nothing is present, it returns an empty table. - -| File | Defaults | Result | -| ---- | -------- | ------ | -| 1 | 1 | file overwrites defaults | -| 1 | 0 | just the file | -| 0 | 1 | just the defaults | -| 0 | 0 | nothing | - -## Config file format - -``` -bool = true -number = 123 -string = the quick brown fox jumps over the lazy dog -I am a comment! -``` -(don't tell anyone, but it's all just a pattern nicked from Programming in Lua (page 82, 4th edition)) |