HD Packs: Fixed "Install HD Pack" folder name when rom contains period in name

This commit is contained in:
Sour 2018-08-19 20:16:39 -04:00
parent e9b82ae5f0
commit 005affab4b

View file

@ -194,7 +194,7 @@ namespace Mesen.GUI.Forms
//Extract HD pack
try {
string targetFolder = Path.Combine(ConfigManager.HdPackFolder, Path.GetFileNameWithoutExtension(romInfo.GetRomName()));
string targetFolder = Path.Combine(ConfigManager.HdPackFolder, romInfo.GetRomName());
if(Directory.Exists(targetFolder)) {
//Warn if the folder already exists
if(MesenMsgBox.Show("InstallHdPackConfirmOverwrite", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, targetFolder) != DialogResult.OK) {