| 935 | } |
| 936 | |
| 937 | static void push_dfhack_focus_string(dfhack_viewscreen *vs, std::vector<std::string> &focusStrings) |
| 938 | { |
| 939 | auto name = vs->getFocusString(); |
| 940 | if (name.empty()) |
| 941 | name = "dfhack"; |
| 942 | else if (string::npos == name.find("dfhack/")) |
| 943 | name = "dfhack/" + name; |
| 944 | |
| 945 | focusStrings.push_back(name); |
| 946 | } |
| 947 | |
| 948 | std::vector<std::string> Gui::getFocusStrings(df::viewscreen* top) |
| 949 | { |
no test coverage detected