diff --git a/Zframework/file.lua b/Zframework/file.lua index 8bcd44b4..3e15f11b 100644 --- a/Zframework/file.lua +++ b/Zframework/file.lua @@ -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