mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Force a read of the location file during detection
This commit is contained in:
@ -231,14 +231,16 @@ namespace osu.Game.Tournament.IPC
|
|||||||
}
|
}
|
||||||
|
|
||||||
private string findFromJsonConfig()
|
private string findFromJsonConfig()
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
Logger.Log("Trying to find stable through the json config");
|
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;
|
return stableInfo.StablePath.Value;
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user