From 83ad5bef5f32c804dc7397efab4e8836c5660b19 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 29 May 2016 14:39:07 -0700 Subject: [PATCH] [RomManipulation] Add more logic for name checking --- SabreHelper/RomManipulation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SabreHelper/RomManipulation.cs b/SabreHelper/RomManipulation.cs index c065016f..c1b47f06 100644 --- a/SabreHelper/RomManipulation.cs +++ b/SabreHelper/RomManipulation.cs @@ -1228,8 +1228,8 @@ namespace SabreTools.Helper // Get the name of the game from the parent tempname = String.Join("\\", parent); - // If we have a SuperDAT and we aren't keeping names - if (superdat && !keep) + // If we aren't keeping names, trim out the path + if (!keep || !superdat) { string tempout = Regex.Match(tempname, @".*?\\(.*)").Groups[1].Value; if (tempout != "")