mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Check for nulls when looking for ipc.txt
This commit is contained in:
parent
2cadab8d29
commit
eb92c3390d
@ -182,7 +182,7 @@ namespace osu.Game.Tournament.IPC
|
||||
/// <returns>Whether an IPC directory was successfully auto-detected.</returns>
|
||||
public bool AutoDetectIPCLocation() => SetIPCLocation(findStablePath());
|
||||
|
||||
private static bool ipcFileExistsInDirectory(string p) => File.Exists(Path.Combine(p, "ipc.txt"));
|
||||
private static bool ipcFileExistsInDirectory(string p) => p != null && File.Exists(Path.Combine(p, "ipc.txt"));
|
||||
|
||||
[CanBeNull]
|
||||
private string findStablePath()
|
||||
|
Loading…
Reference in New Issue
Block a user