#include "../stdafx.h" #include "CGeneralTextHandler.h" #include "../CGameInfo.h" #include "CLodHandler.h" #include void CGeneralTextHandler::load() { std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("GENRLTXT.TXT"); int andame = buf.size(); int i=0; //buf iterator for(i; ibitmaph->getTextFile("ARRAYTXT.TXT"); int itr=0; while(itrbitmaph->getTextFile("PRISKILL.TXT"); for(int hh=0; hh<4; ++hh) { std::string tmp; CGeneralTextHandler::loadToIt(tmp, strin, itr, 3); primarySkillNames.push_back(tmp); } itr = 0; std::string strin2 = CGI->bitmaph->getTextFile("JKTEXT.TXT"); for(int hh=0; hh<45; ++hh) { std::string tmp; CGeneralTextHandler::loadToIt(tmp, strin2, itr, 3); jktexts.push_back(tmp); } itr = 0; std::string strin3 = CGI->bitmaph->getTextFile("HEROSCRN.TXT"); for(int hh=0; hh<33; ++hh) { std::string tmp; CGeneralTextHandler::loadToIt(tmp, strin3, itr, 3); heroscrn.push_back(tmp); } } void CGeneralTextHandler::loadToIt(std::string &dest, std::string &src, int &iter, int mode) { switch(mode) { case 0: { int hmcr = 0; for(iter; iter