diff options
Diffstat (limited to 'mmc_updater/src/UpdateScript.cpp')
-rw-r--r-- | mmc_updater/src/UpdateScript.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mmc_updater/src/UpdateScript.cpp b/mmc_updater/src/UpdateScript.cpp index 606163dd..849a2217 100644 --- a/mmc_updater/src/UpdateScript.cpp +++ b/mmc_updater/src/UpdateScript.cpp @@ -71,13 +71,14 @@ void UpdateScript::parseUpdate(const TiXmlElement* updateNode) UpdateScriptFile UpdateScript::parseFile(const TiXmlElement* element) { UpdateScriptFile file; - file.path = elementText(element->FirstChildElement("name")); + // The name within the update files folder. + file.source = elementText(element->FirstChildElement("source")); + // The path to install to. + file.dest = elementText(element->FirstChildElement("dest")); - std::string modeString = elementText(element->FirstChildElement("permissions")); + std::string modeString = elementText(element->FirstChildElement("mode")); sscanf(modeString.c_str(),"%i",&file.permissions); - file.linkTarget = elementText(element->FirstChildElement("target")); - file.isMainBinary = strToBool(elementText(element->FirstChildElement("is-main-binary"))); return file; } |