mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
Fix updater not always cleaning up temp directory
Updater was only deleting TempUpdate folder when an error occured.
This commit is contained in:
parent
8a621c2d5e
commit
6dcf7643e5
@ -755,10 +755,10 @@ bool RunUpdater(std::vector<std::string> args)
|
|||||||
UI::SetDescription("Performing Update...");
|
UI::SetDescription("Performing Update...");
|
||||||
|
|
||||||
bool ok = PerformUpdate(todo, opts.install_base_path, opts.content_store_url, temp_dir);
|
bool ok = PerformUpdate(todo, opts.install_base_path, opts.content_store_url, temp_dir);
|
||||||
|
CleanUpTempDir(temp_dir, todo);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
FatalError("Failed to apply the update.");
|
FatalError("Failed to apply the update.");
|
||||||
CleanUpTempDir(temp_dir, todo);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user