mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08: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