mirror of
https://github.com/osukey/osukey.git
synced 2025-06-22 19:57:56 +09:00
make tournament migration private
This commit is contained in:
parent
a94dcc4923
commit
e0d5a9182e
@ -30,7 +30,7 @@ namespace osu.Game.Tournament.IO
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Migrate();
|
migrate();
|
||||||
storageConfig.Set(StorageConfig.CurrentTournament, default_tournament);
|
storageConfig.Set(StorageConfig.CurrentTournament, default_tournament);
|
||||||
storageConfig.Save();
|
storageConfig.Save();
|
||||||
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
|
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
|
||||||
@ -40,7 +40,7 @@ namespace osu.Game.Tournament.IO
|
|||||||
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
|
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void Migrate()
|
private void migrate()
|
||||||
{
|
{
|
||||||
var source = new DirectoryInfo(storage.GetFullPath("tournament"));
|
var source = new DirectoryInfo(storage.GetFullPath("tournament"));
|
||||||
var destination = new DirectoryInfo(GetFullPath(default_tournament));
|
var destination = new DirectoryInfo(GetFullPath(default_tournament));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user