mirror of https://github.com/ppy/osu
Force a read of the location file during detection
This commit is contained in:
parent
80d188ec91
commit
4bc858a215
|
@ -231,14 +231,16 @@ private string findFromEnvVar()
|
|||
}
|
||||
|
||||
private string findFromJsonConfig()
|
||||
{
|
||||
try
|
||||
{
|
||||
Logger.Log("Trying to find stable through the json config");
|
||||
if (tournamentStorage.Exists(stable_config))
|
||||
{
|
||||
using (Stream stream = tournamentStorage.GetStream(stable_config, FileAccess.Read, FileMode.Open))
|
||||
using (var sr = new StreamReader(stream))
|
||||
{
|
||||
stableInfo = JsonConvert.DeserializeObject<StableInfo>(sr.ReadToEnd());
|
||||
return stableInfo.StablePath.Value;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue