16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +02:00

Kompiluje się do DynamicObject. Prace nad TMoverParameters.

This commit is contained in:
firleju
2016-10-25 22:46:26 +02:00
parent 28d5be7363
commit 1491681576
27 changed files with 638 additions and 530 deletions

View File

@@ -81,7 +81,7 @@ void ErrorLog(const char *str)
if (!errors.is_open())
{
errors.open("errors.txt", std::ios::trunc);
errors << AnsiString("EU07.EXE " + Global::asRelease).c_str() << "\n";
errors << "EU07.EXE " + Global::asRelease << "\n";
}
if (str)
errors << str;
@@ -92,11 +92,25 @@ void ErrorLog(const char *str)
void Error(const AnsiString &asMessage, bool box)
{
if (box)
MessageBox(NULL, asMessage.c_str(), AnsiString("EU07 " + Global::asRelease).c_str(), MB_OK);
MessageBox(NULL, asMessage.c_str(), string("EU07 " + Global::asRelease).c_str(), MB_OK);
WriteLog(asMessage.c_str());
}
void ErrorLog(const std::string &str, bool newline = true)
void Error(const std::string &asMessage, bool box)
{
if (box)
MessageBox(NULL, asMessage.c_str(), string("EU07 " + Global::asRelease).c_str(), MB_OK);
WriteLog(asMessage.c_str());
}
void Error(const char* &asMessage, bool box)
{
if (box)
MessageBox(NULL, asMessage, string("EU07 " + Global::asRelease).c_str(), MB_OK);
WriteLog(asMessage);
}
void ErrorLog(const std::string &str, bool newline)
{
ErrorLog(str.c_str());
WriteLog(str.c_str(), newline);