Renamed should_cook to cook_pref

This commit is contained in:
parax0
2016-02-26 05:45:21 -07:00
parent 146c88d016
commit 17bb4567df
100 changed files with 822 additions and 822 deletions

View File

@@ -562,7 +562,7 @@ void CTemplateWriter::SaveProperties(XMLDocument *pDoc, XMLElement *pParent, CSt
if (CookPref != eNoCookPreference)
{
XMLElement *pCookPref = pDoc->NewElement("should_cook");
XMLElement *pCookPref = pDoc->NewElement("cook_pref");
pCookPref->SetText(CookPref == eAlwaysCook ? "always" : "never");
pElem->LinkEndChild(pCookPref);
}
@@ -726,12 +726,12 @@ void CTemplateWriter::SavePropertyOverrides(XMLDocument *pDoc, XMLElement *pPare
// Cook Pref
if (pProp->CookPreference() != pSource->CookPreference())
{
XMLElement *pCookPref = pDoc->NewElement("should_cook");
XMLElement *pCookPref = pDoc->NewElement("cook_pref");
TString PrefStr;
if (pProp->CookPreference() == eAlwaysCook) PrefStr = "always";
else if (pProp->CookPreference() == eNeverCook) PrefStr = "never";
else PrefStr = "nopref";
else PrefStr = "none";
pCookPref->SetText(*PrefStr);
pElem->LinkEndChild(pCookPref);

View File

@@ -95,7 +95,7 @@ public:
virtual void SetParam(const TString& rkParamName, const TString& rkValue)
{
if (rkParamName == "should_cook")
if (rkParamName == "cook_pref")
{
TString lValue = rkValue.ToLower();