summaryrefslogtreecommitdiff
path: root/tools/love-api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tools/love-api.lua')
-rw-r--r--tools/love-api.lua5
1 files changed, 5 insertions, 0 deletions
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'))