Add connection flushing support

This commit is contained in:
Dean Herbert
2020-05-11 21:37:07 +09:00
parent 36640f5dda
commit 6c350db097
3 changed files with 22 additions and 8 deletions

View File

@ -328,6 +328,8 @@ namespace osu.Game
{
base.Dispose(isDisposing);
RulesetStore?.Dispose();
ContextFactory.FlushConnections();
}
private class OsuUserInputManager : UserInputManager
@ -355,5 +357,11 @@ namespace osu.Game
public override bool ChangeFocusOnClick => false;
}
}
public void Migrate(string path)
{
ContextFactory.FlushConnections();
(Storage as OsuStorage)?.Migrate(path);
}
}
}