bool PercentLayoutConfig::PreParse(ConfigParser &theParser) { ComponentConfig* aConfig = (ComponentConfig*)GetParent(); target = aConfig->GetChildComponent(GetName()); if(target==NULL) { theParser.AbortRead("Component not found: " + GetName()); return false; } else return true; }
bool LobbyConfig::PostParse(ConfigParser &theParser) { if(mDirServersList.empty()) { theParser.AbortRead("No Directory Servers specified."); return false; } if(mProductName.empty()) { theParser.AbortRead("No product name specified."); return false; } if(mVersion.empty()) { theParser.AbortRead("No version specified."); return false; } if(mLanguage.empty()) { theParser.AbortRead("No language specified."); return false; } if(mLanVersion.empty()) mLanVersion = mVersion; if(mProductDirectory.empty()) mProductDirectory = wstring(L"/") + StringToWString(mProductName); mDefineMap["Product"] = mProductName; return true; }