mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge branch 'tmj-dev' into milek-dev
This commit is contained in:
6
Logs.cpp
6
Logs.cpp
@@ -15,8 +15,6 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "utilities.h"
|
||||
#include "uilayer.h"
|
||||
|
||||
std::shared_ptr<ui_panel> ui_log = std::make_shared<ui_panel>( 20, 140 );
|
||||
|
||||
std::ofstream output; // standardowy "log.txt", można go wyłączyć
|
||||
std::ofstream errors; // lista błędów "errors.txt", zawsze działa
|
||||
std::ofstream comms; // lista komunikatow "comms.txt", można go wyłączyć
|
||||
@@ -85,10 +83,6 @@ void WriteLog( const char *str, logtype const Type ) {
|
||||
output.flush();
|
||||
}
|
||||
|
||||
ui_log->text_lines.emplace_back(std::string(str), Global.UITextColor);
|
||||
if (ui_log->text_lines.size() > 20)
|
||||
ui_log->text_lines.pop_front();
|
||||
|
||||
#ifdef _WIN32
|
||||
if( Global.iWriteLogEnabled & 2 ) {
|
||||
// hunter-271211: pisanie do konsoli tylko, gdy nie jest ukrywana
|
||||
|
||||
Reference in New Issue
Block a user