mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 11:52:57 +08:00
Avoid throwing exceptions when MutatePath is called with null path
This commit is contained in:
parent
faf9b0a528
commit
218cc39a4c
@ -25,7 +25,7 @@ namespace osu.Game.IO
|
||||
this.subPath = subPath;
|
||||
}
|
||||
|
||||
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) ? Path.Combine(subPath, path) : path;
|
||||
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) && !string.IsNullOrEmpty(path) ? Path.Combine(subPath, path) : path;
|
||||
|
||||
protected virtual void ChangeTargetStorage(Storage newStorage)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user