mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix path empty string check causing regression in behaviour
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user