mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Fix path empty string check causing regression in behaviour
This commit is contained in:
parent
d849f7f2b5
commit
58e84760b9
@ -25,7 +25,13 @@ namespace osu.Game.IO
|
||||
this.subPath = subPath;
|
||||
}
|
||||
|
||||
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) && !string.IsNullOrEmpty(path) ? Path.Combine(subPath, path) : path;
|
||||
protected virtual string MutatePath(string path)
|
||||
{
|
||||
if (path == null)
|
||||
return null;
|
||||
|
||||
return !string.IsNullOrEmpty(subPath) ? Path.Combine(subPath, path) : path;
|
||||
}
|
||||
|
||||
protected virtual void ChangeTargetStorage(Storage newStorage)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user