1
0

Merge pull request #452 from mc-server/apidumpe

Fix issue #384
This commit is contained in:
Alexander Harkness 2013-12-20 09:12:49 -08:00
commit 7edad97205
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1 @@

View File

@ -1,4 +1,3 @@
-- main.lua
-- Implements the plugin entrypoint (in this case the entire plugin)
@ -232,6 +231,12 @@ end
function DumpAPIHtml()
LOG("Dumping all available functions and constants to API subfolder...");
LOG("Moving static files..");
local localFolder = g_Plugin:GetLocalFolder();
for k, v in cFile:GetFolderContents(localFolder .. "/Static") do
cFile:Copy(localFolder .. "/Static/" .. v, "API/" .. v);
end
LOG("Creating API tables...");
local API, Globals = CreateAPITables();