From 413fd40b46e9b47b9350559c9dabe5cb8abc6f0a Mon Sep 17 00:00:00 2001 From: kalimag Date: Thu, 25 Jul 2024 04:29:00 +0200 Subject: [PATCH] Fix fuzzy cue file resolving Partially revert 7cde8bb --- .../DiscFormats/CUE/CueFileResolver.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)))