Create storage for config files of a tournament

This commit is contained in:
Shivam 2020-06-11 18:07:24 +02:00
parent 327795ba99
commit 32d86d6fab
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ public class TournamentStorage : WrappedStorage
{
private readonly GameHost host;
internal readonly TournamentVideoResourceStore VideoStore;
internal readonly Storage ConfigurationStorage;
private const string default_tournament = "default";
public TournamentStorage(GameHost host)
@ -38,6 +39,8 @@ public TournamentStorage(GameHost host)
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
}
ConfigurationStorage = UnderlyingStorage.GetStorageForDirectory("config");
VideoStore = new TournamentVideoResourceStore(this);
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
}