1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

changed most of std::cout to tlogX

Alt+F4 quits the game
This commit is contained in:
mateuszb
2008-09-19 12:09:15 +00:00
parent f97628e67f
commit ca1dbfe949
14 changed files with 60 additions and 48 deletions

View File

@ -33,7 +33,7 @@ CGlobalAI * CAIHandler::getNewAI(CCallback * cb, std::string dllname)
HINSTANCE dll = LoadLibraryA(dllname.c_str());
if (!dll)
{
std::cout << "Cannot open AI library ("<<dllname<<"). Throwing..."<<std::endl;
tlog1 << "Cannot open AI library ("<<dllname<<"). Throwing..."<<std::endl;
#ifdef _MSC_VER
throw new std::exception("Cannot open AI library");
#endif
@ -49,7 +49,7 @@ CGlobalAI * CAIHandler::getNewAI(CCallback * cb, std::string dllname)
#if _WIN32
getName(temp);
#endif
std::cout << "Loaded .dll with AI named " << temp << std::endl;
tlog0 << "Loaded .dll with AI named " << temp << std::endl;
delete temp;
#if _WIN32
ret = getAI();