Type | Number |
Library | save.* |
Keywords | data, save |
See also | Sample code, save.getVersion(), save.load() |
This property is the return value for the [save.getVersion()](getVersion.markdown] function, when there is no save file.
local save = require 'plugin.save'
save.init( "bad-filename.json", 1, {36, 45, 92, 36, 19, 28, 5}, "bveiubv984nw0" )
if (save.getVersion() == save.NO_FILE_VERSION) then
print("No save file!")
else
print("Save file version: " .. save.getVersion())
save.load()
print(save.data)
end