mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-30 12:43:41 +01:00
26 lines
871 B
C++
26 lines
871 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) {
|
|
bool b = super::validate(xmlLiteParser, xmlPath, keyPos, generateErrors);
|
|
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 b;
|
|
}
|