mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
revert to frequent log flushing, fix for fiz parsing on linux, unify brake_speed interpretation as full rotations per second
This commit is contained in:
9
Logs.cpp
9
Logs.cpp
@@ -81,6 +81,7 @@ void WriteLog( const char *str, logtype const Type ) {
|
||||
}
|
||||
output << str << "\n";
|
||||
}
|
||||
output.flush();
|
||||
|
||||
UILayer.log.emplace_back(std::string(str));
|
||||
if (UILayer.log.size() > 100)
|
||||
@@ -119,14 +120,6 @@ void ErrorLog( const char *str, logtype const Type ) {
|
||||
errors.flush();
|
||||
};
|
||||
|
||||
void LogsFlush()
|
||||
{
|
||||
if (output.is_open())
|
||||
output.flush();
|
||||
if (errors.is_open())
|
||||
errors.flush();
|
||||
}
|
||||
|
||||
void Error(const std::string &asMessage, bool box)
|
||||
{
|
||||
// if (box)
|
||||
|
||||
Reference in New Issue
Block a user