Fix OS-dependent substring

This commit is contained in:
smoogipoo 2020-04-15 13:54:23 +09:00
parent 10486a0ad2
commit 72707a9973
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ public Stream GetStream(string name)
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>();