aboutsummaryrefslogtreecommitdiff
path: root/serialize_lib/readme.md
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-04-04 19:57:43 +0200
committerorwell96 <orwell@bleipb.de>2021-04-04 19:58:25 +0200
commit5ee8c0e39b6dffc5437e1b48b08cfbeb6ea414d1 (patch)
treec147099e46780125442232b18ca7396aa7a13059 /serialize_lib/readme.md
parent3dc6426e861b7c7e7fa14ab82d62a7d818ea0d2e (diff)
parentedcc0d09178bfb64fbaa7620a7b0176d9b57b9d1 (diff)
downloadadvtrains-5ee8c0e39b6dffc5437e1b48b08cfbeb6ea414d1.tar.gz
advtrains-5ee8c0e39b6dffc5437e1b48b08cfbeb6ea414d1.tar.bz2
advtrains-5ee8c0e39b6dffc5437e1b48b08cfbeb6ea414d1.zip
Update serialize_lib
Diffstat (limited to 'serialize_lib/readme.md')
-rw-r--r--serialize_lib/readme.md43
1 files changed, 42 insertions, 1 deletions
diff --git a/serialize_lib/readme.md b/serialize_lib/readme.md
index ac364b8..1a14187 100644
--- a/serialize_lib/readme.md
+++ b/serialize_lib/readme.md
@@ -4,4 +4,45 @@ Created out of the need to have a robust data store for advtrains.
The main purpose is to load and store large Lua table structures into files, without loading everything in memory and exhausting the function constant limit of LuaJIT.
-Also contains various utilities to handle files on disk in a safe manner, retain multiple versions of the same file a.s.o. \ No newline at end of file
+Also contains various utilities to handle files on disk in a safe manner, retain multiple versions of the same file a.s.o.
+
+## API documentation
+
+For API documentation, see `api.md`.
+
+## Configuration
+
+serialize_lib includes two configuration options:
+
+### serialize_lib_strict_loading (Strict loading)
+ * Type: boolean
+ * Default: false
+
+Enable strict file loading mode
+
+If enabled, if any error occurs during loading of a file using the 'atomic' API, an error is thrown. You probably need to disable this option for initial loading after creating the world.
+
+### serialize_lib_no_auto_windows_mode (No automatic Windows Mode)
+ * Type: boolean
+ * Default: false
+
+Do not automatically switch to "Windows mode" when saving atomically
+
+Normally, when renaming filename.new to filename fails, serialize_lib automatically switches to a mode where it deletes filename prior to moving. Enable this option to prevent this behavior and abort saving instead.
+
+## License
+serialize_lib
+Copyright (C) 2020-2021 orwell96
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>. \ No newline at end of file