Make exportlegends compatible with open-legends

develop
PeridexisErrant 2015-08-15 16:44:12 +10:00
parent 84a1edc3b8
commit f8f7194f82
1 changed files with 2 additions and 1 deletions

@ -564,7 +564,8 @@ function export_site_maps()
end end
-- main() -- main()
if dfhack.gui.getCurFocus() == "legends" then if dfhack.gui.getCurFocus() == "legends" or dfhack.gui.getCurFocus() == "dfhack/lua/legends" then
-- either native legends mode, or using the open-legends.lua script
if args[1] == "all" then if args[1] == "all" then
export_legends_info() export_legends_info()
export_site_maps() export_site_maps()