mirror of
https://github.com/ppy/osu
synced 2025-02-17 02:47:19 +00:00
use common const in TournamentGameBase
This commit is contained in:
parent
b1c957c5e1
commit
a5c2f97a76
@ -33,8 +33,6 @@ namespace osu.Game.Tournament
|
||||
{
|
||||
private const string bracket_filename = "bracket.json";
|
||||
|
||||
private const string stable_config = "tournament/stable.json";
|
||||
|
||||
private LadderInfo ladder;
|
||||
|
||||
private Storage storage;
|
||||
@ -152,7 +150,7 @@ namespace osu.Game.Tournament
|
||||
|
||||
if (storage.Exists(StableInfo.STABLE_CONFIG))
|
||||
{
|
||||
using (Stream stream = storage.GetStream(stable_config, FileAccess.Read, FileMode.Open))
|
||||
using (Stream stream = storage.GetStream(StableInfo.STABLE_CONFIG, FileAccess.Read, FileMode.Open))
|
||||
using (var sr = new StreamReader(stream))
|
||||
{
|
||||
stableInfo = JsonConvert.DeserializeObject<StableInfo>(sr.ReadToEnd());
|
||||
|
Loading…
Reference in New Issue
Block a user