MCPcopy Create free account
hub / github.com/DFHack/dfhack / writeToGamelog

Method writeToGamelog

library/modules/Gui.cpp:1720–1729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1718//
1719
1720DFHACK_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
1732static bool update_ucr_alert(df::unit *unit, df::announcement_alert_type alert_type)

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected