diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CueFileResolver.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CueFileResolver.cs index b7e49d5205..2f38222355 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CueFileResolver.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CueFileResolver.cs @@ -1,7 +1,6 @@ using System.IO; using System.Collections.Generic; using System.Linq; -using BizHawk.Common.PathExtensions; namespace BizHawk.Emulation.DiscSystem.CUE { @@ -72,7 +71,9 @@ namespace BizHawk.Emulation.DiscSystem.CUE /// public List Resolve(string path) { - var (targetFile, targetFragment, _) = path.SplitPathToDirFileAndExt(); + string targetFile = Path.GetFileName(path); + string targetFragment = Path.GetFileNameWithoutExtension(path); + DirectoryInfo di = null; MyFileInfo[] fileInfos; if (!string.IsNullOrEmpty(Path.GetDirectoryName(path)))