summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateScript.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-12-05 20:32:12 -0600
committerAndrew <forkk@forkk.net>2013-12-05 20:32:52 -0600
commite90f1a27569ac6b9e9782646c9de92fc9534b1d2 (patch)
treed04e408ed599a6f33bdcd341dbc99cb6d1de5cb7 /mmc_updater/src/UpdateScript.cpp
parent48ec8e67b8cff63cd2d0e08c17e7bb576b4e07a7 (diff)
downloadMultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar
MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.gz
MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.lz
MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.xz
MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.zip
Implement update installer
Diffstat (limited to 'mmc_updater/src/UpdateScript.cpp')
-rw-r--r--mmc_updater/src/UpdateScript.cpp9
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;
}