| 1718 | // |
| 1719 | |
| 1720 | DFHACK_EXPORT void Gui::writeToGamelog(std::string message) |
| 1721 | { |
| 1722 | if (message.empty()) |
| 1723 | return; |
| 1724 | |
| 1725 | std::ofstream fseed("gamelog.txt", std::ios::out | std::ios::app); |
| 1726 | if(fseed.is_open()) |
| 1727 | fseed << message << std::endl; |
| 1728 | fseed.close(); |
| 1729 | } |
| 1730 | |
| 1731 | // Utility functions for reports |
| 1732 | static bool update_ucr_alert(df::unit *unit, df::announcement_alert_type alert_type) |