summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateScript.h
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.h
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.h')
-rw-r--r--mmc_updater/src/UpdateScript.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/mmc_updater/src/UpdateScript.h b/mmc_updater/src/UpdateScript.h
index fec463f3..c825e35d 100644
--- a/mmc_updater/src/UpdateScript.h
+++ b/mmc_updater/src/UpdateScript.h
@@ -35,10 +35,12 @@ class UpdateScriptFile
public:
UpdateScriptFile()
: permissions(0)
- , isMainBinary(false)
{}
- std::string path;
+ /// Path to copy from.
+ std::string source;
+ /// The path to copy to.
+ std::string dest;
std::string linkTarget;
/** The permissions for this file, specified
@@ -46,14 +48,11 @@ class UpdateScriptFile
*/
int permissions;
- bool isMainBinary;
-
bool operator==(const UpdateScriptFile& other) const
{
- return path == other.path &&
- permissions == other.permissions &&
- linkTarget == other.linkTarget &&
- isMainBinary == other.isMainBinary;
+ return source == other.source &&
+ dest == other.dest &&
+ permissions == other.permissions;
}
};