File Extensions dialog - support .cue, also fix specific platform setting it looks like it never worked in the first place

This commit is contained in:
adelikat 2017-06-17 17:29:03 -05:00
parent 5a8fad73b9
commit d7423d45a0
3 changed files with 11 additions and 2 deletions

View File

@ -479,7 +479,15 @@ namespace BizHawk.Client.Common
case DiscType.TurboCD:
case DiscType.UnknownCDFS:
case DiscType.UnknownFormat:
game.System = "PCECD";
if (PreferredPlatformIsDefined(ext))
{
game.System = Global.Config.PreferredPlatformsForExtensions[ext];
}
else
{
game.System = "PCECD";
}
break;
}
}

View File

@ -46,6 +46,7 @@ namespace BizHawk.Client.Common
{ ".rom", "" },
{ ".iso", "" },
{ ".img", "" },
{ ".cue", "" }
};
// Path Settings ************************************/

View File

@ -28,7 +28,7 @@ namespace BizHawk.Client.EmuHawk
if (PlatformDropdown.SelectedIndex > 0)
{
return _availableSystems
.First(x => x.SystemId == PlatformDropdown.SelectedItem.ToString()).FullName;
.First(x => x.FullName == PlatformDropdown.SelectedItem.ToString()).SystemId;
}
return "";