| 151 | } |
| 152 | |
| 153 | static void append_log_message(std::stringstream* log_messages, std::string_view message, const logs::message* channel = nullptr) |
| 154 | { |
| 155 | if (channel) |
| 156 | { |
| 157 | channel->operator()("%s", message); |
| 158 | } |
| 159 | |
| 160 | if (log_messages && !message.empty()) |
| 161 | { |
| 162 | *log_messages << message << std::endl; |
| 163 | } |
| 164 | }; |
| 165 | |
| 166 | bool patch_engine::load(patch_map& patches_map, const std::string& path, std::string content, bool importing, std::stringstream* log_messages) |
| 167 | { |
no test coverage detected