本文整理汇总了C++中CInifile::r_string_wb方法的典型用法代码示例。如果您正苦于以下问题:C++ CInifile::r_string_wb方法的具体用法?C++ CInifile::r_string_wb怎么用?C++ CInifile::r_string_wb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CInifile
的用法示例。
在下文中一共展示了CInifile::r_string_wb方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadLTX
void st_LevelOptions::ReadLTX(CInifile& ini)
{
LPCSTR section = "level_options";
u32 vers_op = ini.r_u32(section, "version");
if( vers_op < 0x00000008 )
{
ELog.DlgMsg( mtError, "Skipping bad version of level options." );
return;
}
m_FNLevelPath = ini.r_string (section, "level_path");
m_LevelPrefix = ini.r_string (section, "level_prefix");
m_BOPText = ini.r_string_wb (section, "bop");
if(vers_op > 0x0000000B)
m_map_version = ini.r_string (section, "map_version");
m_BuildParams.LoadLTX(ini);
m_LightHemiQuality = ini.r_u8(section, "light_hemi_quality" );
m_LightSunQuality = ini.r_u8(section, "light_sun_quality" );
m_mapUsage.SetDefaults ();
if(vers_op > 0x0000000A)
{
m_mapUsage.LoadLTX (ini,section,false);
}else
{
m_mapUsage.m_GameType.set (eGameIDDeathmatch , ini.r_s32(section, "usage_deathmatch"));
m_mapUsage.m_GameType.set (eGameIDTeamDeathmatch, ini.r_s32(section, "usage_teamdeathmatch"));
m_mapUsage.m_GameType.set (eGameIDArtefactHunt, ini.r_s32(section, "usage_artefacthunt"));
if(vers_op > 0x00000008)
{
m_mapUsage.m_GameType.set (eGameIDCaptureTheArtefact, ini.r_s32(section, "usage_captretheartefact"));
m_mapUsage.m_GameType.set (eGameIDTeamDominationZone, ini.r_s32(section, "usage_team_domination_zone"));
if(vers_op==0x00000009)
m_mapUsage.m_GameType.set(eGameIDDominationZone, ini.r_s32(section, "domination_zone"));
else
m_mapUsage.m_GameType.set(eGameIDDominationZone, ini.r_s32(section, "usage_domination_zone"));
}
}
}