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:
@ -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();
|
||||
|
Reference in New Issue
Block a user