From ff59147f34b74cf47c474f370463c4ff7ffc0d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 22 Jul 2021 13:20:43 +0800 Subject: resolve #614 --- tools/love-api.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/love-api.lua') diff --git a/tools/love-api.lua b/tools/love-api.lua index 67cebeca..bb7f6c8e 100644 --- a/tools/love-api.lua +++ b/tools/love-api.lua @@ -204,6 +204,11 @@ local function buildFile(class, defs) end end + if defs.version then + text[#text+1] = '' + text[#text+1] = ('return %s'):format(class) + end + text[#text+1] = '' fsu.saveFile(filePath, table.concat(text, '\n')) -- cgit v1.2.3