mirror of
https://github.com/osukey/osukey.git
synced 2025-07-22 19:00:05 +09:00
Check for nulls when looking for ipc.txt
This commit is contained in:
@ -182,7 +182,7 @@ namespace osu.Game.Tournament.IPC
|
|||||||
/// <returns>Whether an IPC directory was successfully auto-detected.</returns>
|
/// <returns>Whether an IPC directory was successfully auto-detected.</returns>
|
||||||
public bool AutoDetectIPCLocation() => SetIPCLocation(findStablePath());
|
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]
|
[CanBeNull]
|
||||||
private string findStablePath()
|
private string findStablePath()
|
||||||
|
Reference in New Issue
Block a user