diff --git a/UE4SS/src/GUI/ConsoleOutputDevice.cpp b/UE4SS/src/GUI/ConsoleOutputDevice.cpp index 7e0ac8e67..2552d0573 100644 --- a/UE4SS/src/GUI/ConsoleOutputDevice.cpp +++ b/UE4SS/src/GUI/ConsoleOutputDevice.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -27,7 +28,12 @@ namespace RC::Output fmt_copy.pop_back(); } auto color = static_cast(optional_arg); - UE4SSProgram::get_program().get_debugging_ui().get_console().add_line(m_formatter(fmt_copy), color); + auto formatted_message = m_formatter(fmt_copy); + std::wstringstream stream{formatted_message}; + for (File::StringType line; std::getline(stream, line);) + { + UE4SSProgram::get_program().get_debugging_ui().get_console().add_line(line, color); + } #endif } } // namespace RC::Output