Limit the number of file types to attempt to parse as archive

This commit is contained in:
Matt Nadareski
2016-04-13 12:47:27 -07:00
parent 854649c681
commit 35a6fbe1d6
2 changed files with 13 additions and 1 deletions

View File

@@ -28,6 +28,9 @@ namespace SabreTools.Helper
public static Dictionary<string, int> PCE = new Dictionary<string, int>();
public static Dictionary<string, int> SNES = new Dictionary<string, int>();
// Available archive formats
public static List<string> ArchiveFormats = new List<string>();
/// <summary>
/// Create all remappings to be used by the program
/// </summary>
@@ -226,5 +229,12 @@ namespace SabreTools.Helper
}
}
}
public static void CreateArchiveFormats()
{
ArchiveFormats.Add("7z");
ArchiveFormats.Add("zip");
ArchiveFormats.Add("rar");
}
}
}