2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2020-06-08 06:46:40 +08:00
|
|
|
|
// 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 12:00:39 +08:00
|
|
|
|
public class TournamentConfigManager : IniConfigManager<StorageConfig>
|
2020-06-08 06:46:40 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Filename => "tournament.ini";
|
|
|
|
|
|
2022-10-28 12:00:39 +08:00
|
|
|
|
private const string default_tournament = "default";
|
|
|
|
|
|
|
|
|
|
public TournamentConfigManager(Storage storage)
|
2020-06-08 06:46:40 +08:00
|
|
|
|
: base(storage)
|
|
|
|
|
{
|
|
|
|
|
}
|
2022-10-28 12:00:39 +08:00
|
|
|
|
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
|
|
|
|
base.InitialiseDefaults();
|
|
|
|
|
|
|
|
|
|
SetDefault(StorageConfig.CurrentTournament, default_tournament);
|
|
|
|
|
}
|
2020-06-08 06:46:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum StorageConfig
|
|
|
|
|
{
|
|
|
|
|
CurrentTournament,
|
|
|
|
|
}
|
2020-06-11 21:52:14 +08:00
|
|
|
|
}
|