summaryrefslogtreecommitdiff
path: root/io/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'io/init.lua')
-rw-r--r--io/init.lua7
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