We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e9efc commit a8d5627Copy full SHA for a8d5627
UE4SS/src/GUI/ConsoleOutputDevice.cpp
@@ -1,5 +1,6 @@
1
#include <chrono>
2
#include <locale>
3
+#include <sstream>
4
5
#include <GUI/ConsoleOutputDevice.hpp>
6
#include <UE4SSProgram.hpp>
@@ -27,7 +28,12 @@ namespace RC::Output
27
28
fmt_copy.pop_back();
29
}
30
auto color = static_cast<Color::Color>(optional_arg);
- UE4SSProgram::get_program().get_debugging_ui().get_console().add_line(m_formatter(fmt_copy), color);
31
+ auto formatted_message = m_formatter(fmt_copy);
32
+ std::wstringstream stream{formatted_message};
33
+ for (File::StringType line; std::getline(stream, line);)
34
+ {
35
+ UE4SSProgram::get_program().get_debugging_ui().get_console().add_line(line, color);
36
+ }
37
#endif
38
39
} // namespace RC::Output
0 commit comments