private void ParseHeaderFileToDecompileDictionaries(string[] rbhFile, Dictionary<uint, string> tempDict, Dictionary<uint, string> tempDict2, Dictionary<uint, string> tempDict3)
{
foreach (string s in rbhFile)
{
if (s.StartsWith("#define"))
{
int temp = 0;
string[] rbhLine = s.Split(' ');
bool success = Int32.TryParse(rbhLine[2], out temp);
if (success)
{
try
{
if (rbhLine[1].ToUpper().Contains("TYPE"))
{
tempDict2.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
}
else if (rbhLine[1].ToUpper().Contains("BANK"))
{
tempDict3.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
}
else
{
tempDict.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
}
}
catch
{
}
}
else
{
try
{
if (rbhLine[1].ToUpper().Contains("TYPE"))
{
tempDict2.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
}
else if (rbhLine[1].ToUpper().Contains("BANK"))
{
tempDict3.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
}
else
{
tempDict.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
}
}
catch
{
}
}
}
}
}