Run cleanup tasks only on startup via manual calls

This commit is contained in:
Dean Herbert
2017-10-17 19:58:33 +09:00
parent b9d0fb96ed
commit e4a066dc5f
5 changed files with 8 additions and 18 deletions

View File

@ -27,14 +27,12 @@ namespace osu.Game.Database
Logger.Error(e, $@"Failed to initialise the {GetType()}! Trying again with a clean database...");
Prepare(true);
}
StartupTasks();
}
/// <summary>
/// Perform any common startup tasks. Runs after <see cref="Prepare(bool)"/>.
/// Perform any common clean-up tasks. Should be run when idle, or whenever necessary.
/// </summary>
protected virtual void StartupTasks()
public virtual void Cleanup()
{
}