2020-06-07 22:46:40 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Configuration;
|
|
|
|
|
using osu.Framework.Platform;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Configuration
|
|
|
|
|
{
|
2022-10-28 04:00:39 +00:00
|
|
|
|
public class TournamentConfigManager : IniConfigManager<StorageConfig>
|
2020-06-07 22:46:40 +00:00
|
|
|
|
{
|
|
|
|
|
protected override string Filename => "tournament.ini";
|
|
|
|
|
|
2022-10-28 04:00:39 +00:00
|
|
|
|
private const string default_tournament = "default";
|
|
|
|
|
|
|
|
|
|
public TournamentConfigManager(Storage storage)
|
2020-06-07 22:46:40 +00:00
|
|
|
|
: base(storage)
|
|
|
|
|
{
|
|
|
|
|
}
|
2022-10-28 04:00:39 +00:00
|
|
|
|
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
|
|
|
|
base.InitialiseDefaults();
|
|
|
|
|
|
|
|
|
|
SetDefault(StorageConfig.CurrentTournament, default_tournament);
|
|
|
|
|
}
|
2020-06-07 22:46:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum StorageConfig
|
|
|
|
|
{
|
|
|
|
|
CurrentTournament,
|
|
|
|
|
}
|
2020-06-11 13:52:14 +00:00
|
|
|
|
}
|