mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 04:32:14 +00:00
Finish implementing update installation.
Also add the option to update on exit.
This commit is contained in:
18
MultiMC.h
18
MultiMC.h
@@ -98,6 +98,22 @@ public:
|
||||
|
||||
std::shared_ptr<JavaVersionList> javalist();
|
||||
|
||||
/*!
|
||||
* Installs update from the given update files directory.
|
||||
*/
|
||||
void installUpdates(const QString& updateFilesDir, bool restartOnFinish=false);
|
||||
|
||||
/*!
|
||||
* Sets MultiMC to install updates from the given directory when it exits.
|
||||
*/
|
||||
void setUpdateOnExit(const QString& updateFilesDir);
|
||||
|
||||
/*!
|
||||
* Gets the path to install updates from on exit.
|
||||
* If this is an empty string, no updates should be installed on exit.
|
||||
*/
|
||||
QString getExitUpdatePath() const;
|
||||
|
||||
private:
|
||||
void initLogger();
|
||||
|
||||
@@ -124,6 +140,8 @@ private:
|
||||
QsLogging::DestinationPtr m_fileDestination;
|
||||
QsLogging::DestinationPtr m_debugDestination;
|
||||
|
||||
QString m_updateOnExitPath;
|
||||
|
||||
Status m_status = MultiMC::Failed;
|
||||
MultiMCVersion m_version;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user