From 886f646cbacdbf0fe87cdda4ddb145dc72919194 Mon Sep 17 00:00:00 2001 From: Geequlim Date: Fri, 16 Dec 2016 19:12:22 +0800 Subject: Implements modules documents Editor can generate documents for modules in thier own xml files --- main/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 9be77c31b6..fb7f2ebceb 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1063,6 +1063,7 @@ bool Main::start() { bool editor=false; String doc_tool; + List removal_docs; bool doc_base=true; String game_path; String script; @@ -1093,6 +1094,8 @@ bool Main::start() { bool parsed_pair=true; if (args[i]=="-doctool") { doc_tool=args[i+1]; + for(int j=i+2; j::Element* E= removal_docs.front(); E; E=E->next()) { + DocData rmdoc; + if (rmdoc.load(E->get()) == OK) { + print_line(String("Removing classes in ") + E->get()); + doc.remove_from(rmdoc); + } + } + doc.save(doc_tool); return false; -- cgit v1.2.3