mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
* some functions have been written
* added CConsoleHandler to interact with user (it should be testing - only, the real console should be as in h3) pathfinder MAY work now, but it isn't tested
This commit is contained in:
3
CMT.cpp
3
CMT.cpp
@ -37,6 +37,7 @@
|
||||
#include "global.h"
|
||||
#include "CPreGame.h"
|
||||
#include "CGeneralTextHandler.h"
|
||||
#include "CConsoleHandler.h"
|
||||
|
||||
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
|
||||
# include <fcntl.h>
|
||||
@ -110,6 +111,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
SDL_WM_SetCaption(NAME,""); //set window title
|
||||
CGameInfo * cgi = new CGameInfo; //contains all global informations about game (texts, lodHandlers, map handler itp.)
|
||||
CGameInfo::mainObj = cgi;
|
||||
cgi->consoleh = new CConsoleHandler;
|
||||
cgi->consoleh->runConsole();
|
||||
cgi->mush = mush;
|
||||
|
||||
THC std::cout<<"Initializing screen, fonts and sound handling: "<<tmh.getDif()<<std::endl;
|
||||
|
Reference in New Issue
Block a user