From e720387c61c66fdc81876157d65534500a23d0cf Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 2 Nov 2020 10:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E5=AD=98?= =?UTF-8?q?=E6=A1=A3=E6=96=87=E4=BB=B6=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/file.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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