1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix IPC Source getting read from the incorrect location

This commit is contained in:
Shivam 2021-04-04 14:10:07 +02:00
parent f95b91e3b6
commit 5f1f8ec0ef

View File

@ -34,10 +34,10 @@ namespace osu.Game.Tournament.Models
TournamentStorage tStorage = (TournamentStorage)storage;
this.storage = tStorage.AllTournaments;
if (!storage.Exists(config_path))
if (!this.storage.Exists(config_path))
return;
using (Stream stream = storage.GetStream(config_path, FileAccess.Read, FileMode.Open))
using (Stream stream = this.storage.GetStream(config_path, FileAccess.Read, FileMode.Open))
using (var sr = new StreamReader(stream))
{
JsonConvert.PopulateObject(sr.ReadToEnd(), this);