mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
AutoUpdater: support optionally restarting Dolphin after update
This commit is contained in:
@ -33,7 +33,12 @@ public:
|
||||
};
|
||||
|
||||
// Starts the updater process, which will wait in the background until the current process exits.
|
||||
void TriggerUpdate(const NewVersionInformation& info);
|
||||
enum class RestartMode
|
||||
{
|
||||
NO_RESTART_AFTER_UPDATE = 0,
|
||||
RESTART_AFTER_UPDATE,
|
||||
};
|
||||
void TriggerUpdate(const NewVersionInformation& info, RestartMode restart_mode);
|
||||
|
||||
protected:
|
||||
virtual void OnUpdateAvailable(const NewVersionInformation& info) = 0;
|
||||
|
Reference in New Issue
Block a user