summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateInstaller.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-05 00:06:55 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-05 00:06:55 +0100
commitb49fa9d2a99b1230dd9b3146d5a1bb65848b4aae (patch)
treea4d2afeb54441bc970861d700458675b36a0188a /mmc_updater/src/UpdateInstaller.h
parente558584af0e6a168d76868e89d132aeebd0aa36a (diff)
downloadMultiMC-b49fa9d2a99b1230dd9b3146d5a1bb65848b4aae.tar
MultiMC-b49fa9d2a99b1230dd9b3146d5a1bb65848b4aae.tar.gz
MultiMC-b49fa9d2a99b1230dd9b3146d5a1bb65848b4aae.tar.lz
MultiMC-b49fa9d2a99b1230dd9b3146d5a1bb65848b4aae.tar.xz
MultiMC-b49fa9d2a99b1230dd9b3146d5a1bb65848b4aae.zip
Mess with the updater again.
Diffstat (limited to 'mmc_updater/src/UpdateInstaller.h')
-rw-r--r--mmc_updater/src/UpdateInstaller.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/mmc_updater/src/UpdateInstaller.h b/mmc_updater/src/UpdateInstaller.h
index 1eca0bc7..5cbac561 100644
--- a/mmc_updater/src/UpdateInstaller.h
+++ b/mmc_updater/src/UpdateInstaller.h
@@ -24,7 +24,6 @@ class UpdateInstaller
Main
};
- UpdateInstaller();
void setInstallDir(const std::string& path);
void setPackageDir(const std::string& path);
void setBackupDir(const std::string& path);
@@ -33,6 +32,7 @@ class UpdateInstaller
void setWaitPid(PLATFORM_PID pid);
void setForceElevated(bool elevated);
void setAutoClose(bool autoClose);
+ void setDryRun(bool dryRun);
void setFinishCmd(const std::string& cmd);
void setObserver(UpdateObserver* observer);
@@ -57,16 +57,16 @@ class UpdateInstaller
std::list<std::string> updaterArgs() const;
std::string friendlyErrorForError(const FileUtils::IOException& ex) const;
- Mode m_mode;
+ Mode m_mode = Setup;
std::string m_installDir;
std::string m_packageDir;
std::string m_backupDir;
std::string m_finishCmd;
- PLATFORM_PID m_waitPid;
- UpdateScript* m_script;
- UpdateObserver* m_observer;
+ PLATFORM_PID m_waitPid = 0;
+ UpdateScript* m_script = nullptr;
+ UpdateObserver* m_observer = nullptr;
std::map<std::string,std::string> m_backups;
- bool m_forceElevated;
- bool m_autoClose;
+ bool m_forceElevated = false;
+ bool m_autoClose = false;
+ bool m_dryRun = false;
};
-