1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Fix OS-dependent substring

This commit is contained in:
smoogipoo 2020-04-15 13:54:23 +09:00
parent 10486a0ad2
commit 72707a9973

View File

@ -318,7 +318,7 @@ namespace osu.Game.Tests.Gameplay
return new MemoryStream();
}
private void markLookup(string name) => PerformedLookups.Add(name.Substring(name.LastIndexOf('/') + 1));
private void markLookup(string name) => PerformedLookups.Add(name.Substring(name.LastIndexOf(Path.DirectorySeparatorChar) + 1));
public IEnumerable<string> GetAvailableResources() => Enumerable.Empty<string>();