Fix fuzzy cue file resolving

Partially revert 7cde8bb
This commit is contained in:
kalimag 2024-07-25 04:29:00 +02:00 committed by James Groom
parent 3a8b3913bf
commit 413fd40b46
1 changed files with 3 additions and 2 deletions

View File

@ -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
/// </summary>
public List<string> 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)))