summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-12-20 18:12:49 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-12-20 18:12:49 +0100
commit7edad97205f16e63f31c0906c947ae834a5dfb18 (patch)
treed21a13c07fe9d70947d516fe21b97584b0628131
parentMore reordering fixes. (diff)
parentdone... finally (diff)
downloadcuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar.gz
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar.bz2
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar.lz
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar.xz
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.tar.zst
cuberite-7edad97205f16e63f31c0906c947ae834a5dfb18.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Static/.gitignore1
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua7
2 files changed, 7 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/Static/.gitignore b/MCServer/Plugins/APIDump/Static/.gitignore
new file mode 100644
index 000000000..8d1c8b69c
--- /dev/null
+++ b/MCServer/Plugins/APIDump/Static/.gitignore
@@ -0,0 +1 @@
+
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index ec5569f55..404e0a519 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -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();