From 4e6988d21bba51441c9553d12580c1e8e7bfd11f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 28 Dec 2017 01:00:01 +0900 Subject: [PATCH] As it turns out, native directory separators are not supported --- osu.Game/Audio/SampleInfo.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osu.Game/Audio/SampleInfo.cs b/osu.Game/Audio/SampleInfo.cs index 9597acd902..71975bf0fa 100644 --- a/osu.Game/Audio/SampleInfo.cs +++ b/osu.Game/Audio/SampleInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; -using System.IO; using osu.Framework.Audio.Sample; namespace osu.Game.Audio @@ -20,11 +19,11 @@ namespace osu.Game.Audio SampleChannel channel = null; if (resourceNamespace != null) - channel = manager.Get(Path.Combine("Gameplay", resourceNamespace, $"{Bank}-{Name}")); + channel = manager.Get($"Gameplay/{resourceNamespace}/{Bank}-{Name}"); // try without namespace as a fallback. if (channel == null) - channel = manager.Get(Path.Combine("Gameplay", $"{Bank}-{Name}")); + channel = manager.Get($"Gameplay/{Bank}-{Name}"); if (channel != null) channel.Volume.Value = Volume / 100.0;