| 112 | // |
| 113 | |
| 114 | static void init_diggers(color_ostream& out) { |
| 115 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |
| 116 | DEBUG(status, out).print("map not yet loaded; not scanning jobs\n"); |
| 117 | return; |
| 118 | } |
| 119 | |
| 120 | std::vector<df::job*> pvec; |
| 121 | int start_id = 0; |
| 122 | if (Job::listNewlyCreated(&pvec, &start_id)) { |
| 123 | for (auto job : pvec) { |
| 124 | if (Job::getWorker(job)) |
| 125 | jobStartedHandler(out, job); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | static void jobStartedHandler(color_ostream& out, void* ptr) { |
| 131 | DEBUG(event, out).print("entering jobStartedHandler\n"); |
no test coverage detected