diff options
author | Determinant <[email protected]> | 2015-05-24 20:35:40 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-24 20:35:40 +0800 |
commit | 3ccca6ba1eb7b6732036f4128c977c0b02ef3836 (patch) | |
tree | 150ea05f65a2cc041433a601a83c4c887a7bcc86 /io/init.lua | |
parent | 5d1cb5619ea720968e01ec9a63422b2cc30295ef (diff) |
add write functionality to ParamFile
Diffstat (limited to 'io/init.lua')
-rw-r--r-- | io/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/io/init.lua b/io/init.lua new file mode 100644 index 0000000..1288bd4 --- /dev/null +++ b/io/init.lua @@ -0,0 +1,7 @@ +function nerv.ParamFile:write_chunkdata(metadata, writer) + if type(metadata) ~= "table" then + nerv.error("metadata should be a Lua table") + return + end + return self:_write_chunkdata(table.tostring(metadata), writer) +end |