添加导出存档文件函数
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local fs=love.filesystem
|
||||
local sys,fs=love.filesystem,love.filesystem
|
||||
|
||||
local files={
|
||||
data= fs.newFile("data.dat"),
|
||||
@@ -35,6 +35,9 @@ function FILE.delRecord(N)
|
||||
fs.remove(N..".dat")
|
||||
end
|
||||
|
||||
function FILE.exportUnlock()
|
||||
sys.setClipboardText(dumpTable(modeRanks))
|
||||
end
|
||||
function FILE.loadUnlock()
|
||||
local F=files.unlock
|
||||
if F:open("r")then
|
||||
@@ -57,6 +60,10 @@ function FILE.saveUnlock()
|
||||
LOG.print(text.unlockSavingError..(mes or"unknown error"),color.red)
|
||||
end
|
||||
end
|
||||
|
||||
function FILE.exportUnlock()
|
||||
sys.setClipboardText(dumpTable(STAT))
|
||||
end
|
||||
function FILE.loadData()
|
||||
local F=files.data
|
||||
if F:open("r")then
|
||||
@@ -83,6 +90,9 @@ function FILE.saveData()
|
||||
end
|
||||
end
|
||||
|
||||
function FILE.exportSetting()
|
||||
sys.setClipboardText(dumpTable(SETTING))
|
||||
end
|
||||
function FILE.loadSetting()
|
||||
local F=files.setting
|
||||
if F:open("r")then
|
||||
@@ -129,6 +139,9 @@ function FILE.saveKeyMap()
|
||||
end
|
||||
end
|
||||
|
||||
function FILE.exportVK()
|
||||
sys.setClipboardText(dumpTable(VK_org))
|
||||
end
|
||||
function FILE.loadVK()
|
||||
local F=files.VK
|
||||
if F:open("r")then
|
||||
|
||||
Reference in New Issue
Block a user