| 1798 | //=============================================================================== |
| 1799 | |
| 1800 | void embark_assist::finder_ui::init(DFHack::Plugin *plugin_self, embark_assist::defs::find_callbacks find_callback, uint16_t max_inorganic, bool fileresult) { |
| 1801 | if (!embark_assist::finder_ui::state) { // First call. Have to do the setup |
| 1802 | embark_assist::finder_ui::ui_setup(find_callback, max_inorganic); |
| 1803 | } |
| 1804 | if (!fileresult) { |
| 1805 | Screen::show(std::make_unique<ViewscreenFindUi>(), plugin_self); |
| 1806 | } |
| 1807 | else |
| 1808 | { |
| 1809 | load_profile(); |
| 1810 | find(); |
| 1811 | } |
| 1812 | } |
| 1813 | |
| 1814 | //=============================================================================== |
| 1815 |
nothing calls this directly
no test coverage detected