Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 805 Bytes

rename.markdown

File metadata and controls

32 lines (20 loc) · 805 Bytes

save.rename()

 
Type function
Library save.*
Return value Boolean
Keywords save, rename
See also Sample code, save.load()

Overview

This function is used to rename the current save file.

Syntax

save.rename()

Examples

local save = require 'plugin.save'

save.init( "example.json", 1, {36, 45, 92, 36, 19, 28, 5}, "bveiubv984nw0" )

if (save.rename("example-renamed.json")) then
	print("Save file renamed!")
end