Dalsze poprawki do AnsiString w różnych plikach.

This commit is contained in:
firleju
2016-10-23 22:34:32 +02:00
parent 89756e81a1
commit 28d5be7363
18 changed files with 82 additions and 62 deletions

View File

@@ -75,6 +75,7 @@ void WriteLog(const char *str, bool newline)
WriteConsoleOnly(str, newline);
}
};
void ErrorLog(const char *str)
{ // Ra: bezwarunkowa rejestracja powa¿nych b³êdów
if (!errors.is_open())
@@ -94,6 +95,13 @@ void Error(const AnsiString &asMessage, bool box)
MessageBox(NULL, asMessage.c_str(), AnsiString("EU07 " + Global::asRelease).c_str(), MB_OK);
WriteLog(asMessage.c_str());
}
void ErrorLog(const std::string &str, bool newline = true)
{
ErrorLog(str.c_str());
WriteLog(str.c_str(), newline);
}
void ErrorLog(const AnsiString &asMessage)
{ // zapisywanie b³êdów "errors.txt"
ErrorLog(asMessage.c_str());