16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

flush fixes for e3d exporter

This commit is contained in:
milek7
2022-03-06 22:10:30 +01:00
parent ff61e18fd0
commit 8fcd17351c
2 changed files with 14 additions and 16 deletions

View File

@@ -83,8 +83,8 @@ void WriteLog( const char *str, logtype const Type ) {
output.open( filename, std::ios::trunc );
}
output << str << "\n";
output.flush();
}
output.flush();
log_scrollback.emplace_back(std::string(str));
if (log_scrollback.size() > 200)