#include "../stdafx.h" #include "CPreGameTextHandler.h" #include "../CGameInfo.h" #include "CLodHandler.h" #include #include std::string CPreGameTextHandler::getTitle(std::string text) { std::string ret; int i=0; while ((text[i++]!='{')); while ((text[i]!='}') && (ibitmaph->getTextFile("ZELP.TXT"); int itr=0, eol=-1, eolnext=-1, pom; eolnext = buf1.find_first_of('\r',itr); while(itreol) //in current line there is not tab zelp.push_back(std::pair()); else { zelp.push_back (std::pair (buf1.substr(itr,pom-itr), buf1.substr(pom+1,eol-pom-1))); boost::algorithm::replace_all(zelp[zelp.size()-1].first,"\t",""); boost::algorithm::replace_all(zelp[zelp.size()-1].second,"\t",""); } itr=eol+2; } std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("VCDESC.TXT"); int andame = buf.size(); int i=0; //buf iterator for(int gg=0; gg<14; ++gg) { int befi=i; for(i; ibitmaph->getTextFile("LCDESC.TXT"); andame = buf.size(); i=0; //buf iterator for(int gg=0; gg<4; ++gg) { int befi=i; for(i; i