mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Allow game folder migration to fail gracefully when cleanup cannot completely succeed
This commit is contained in:
@ -113,11 +113,14 @@ namespace osu.Game.IO
|
||||
}
|
||||
}
|
||||
|
||||
public override void Migrate(Storage newStorage)
|
||||
public override bool Migrate(Storage newStorage)
|
||||
{
|
||||
base.Migrate(newStorage);
|
||||
bool cleanupSucceeded = base.Migrate(newStorage);
|
||||
|
||||
storageConfig.SetValue(StorageConfig.FullPath, newStorage.GetFullPath("."));
|
||||
storageConfig.Save();
|
||||
|
||||
return cleanupSucceeded;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user