CloverBootloader/rEFIt_UEFI/Settings/ConfigPlist/Config_GUI.cpp
2021-09-28 16:54:31 +03:00

26 lines
886 B
C++

/*
* ConfigPlist.cpp
*
* Created on: Oct 9, 2020
* Author: jief
*/
//#include "Config_CPU.h"
//#include "../../cpp_lib/XmlLiteSimpleTypes.h"
//#include "../../cpp_lib/XmlLiteParser.h"
//
//#include "Config_GUI.h"
#include "ConfigPlistClass.h"
XBool ConfigPlistClass::GUI_Class::GUI_Custom_Class::GUI_Custom_Entry_Class::validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, XBool generateErrors) {
if ( !super::validate(xmlLiteParser, xmlPath, keyPos, generateErrors) ) return false;
for ( size_t idx=0 ; idx < SubEntries.size() ; ++idx ) SubEntries.ElementAt(idx).Parent = this;
if ( Arguments.isDefined() && AddArguments.isDefined() ) {
xmlLiteParser->addError(generateErrors, S8Printf("Arguments is ignored because AddArguments is defined. Line %d.", keyPos.getLine()));
Arguments.reset();
}
return true;
}