rendered paste bodyvoid InitConfig(){std::string LgDataPath = CIniFile::GetValue("sLegendPath","General",LEGEND_INI_NAME);const char* gDataPath = LgDataPath.c_str();std::string iXres = CIniFile::GetValue("iXres","Display",LEGEND_INI_NAME);SLONG Xres = boost::lexical_cast<int>(iXres);std::string iYres = CIniFile::GetValue("iYres","Display",LEGEND_INI_NAME);SLONG Yres = boost::lexical_cast<int>(iYres);std::string bFullScreen = CIniFile::GetValue("bFullScreen","Display",LEGEND_INI_NAME);bool FullScreen = convertToBool(bFullScreen);}void CLegendApp::InitDisplay(){ m_sWindowTitle = "Legend"; m_appConfig.m_videoConfig.m_eMultiSample = VVIDEO_MULTISAMPLE_2TIMES; m_appConfig.m_videoConfig.m_bFullScreen = FullScreen; m_appConfig.m_videoConfig.m_iXRes = Xres; m_appConfig.m_videoConfig.m_iYRes = Yres; }