From e9a9ddad6ac4983180821d326939464a6dfd4393 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 28 Apr 2016 16:41:23 -0700 Subject: [PATCH] Make keys more selective --- SabreHelper/RomManipulation.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SabreHelper/RomManipulation.cs b/SabreHelper/RomManipulation.cs index bbcace0d..175a2436 100644 --- a/SabreHelper/RomManipulation.cs +++ b/SabreHelper/RomManipulation.cs @@ -449,8 +449,9 @@ namespace SabreTools.Helper } // Get the new values to add - string key = (xtr.GetAttribute("crc") != null ? xtr.GetAttribute("crc").ToLowerInvariant().Trim() : "") + - (xtr.GetAttribute("sha1") != null ? xtr.GetAttribute("sha1").ToLowerInvariant().Trim() : "") + + string key = (xtr.GetAttribute("crc") != null ? xtr.GetAttribute("crc").ToLowerInvariant().Trim() : "") + "-" + + (xtr.GetAttribute("md5") != null ? xtr.GetAttribute("md5").ToLowerInvariant().Trim() : "") + "-" + + (xtr.GetAttribute("sha1") != null ? xtr.GetAttribute("sha1").ToLowerInvariant().Trim() : "") + "-" + size; RomData value = new RomData {