1 using System.Collections.Generic;
3 using DirectOutput.Cab;
4 using DirectOutput.Cab.Toys;
5 using DirectOutput.GlobalConfiguration;
6 using DirectOutput.Table;
7 using DirectOutput.Cab.Toys.LWEquivalent;
8 namespace DirectOutput.LedControl.Loader
21 public Dictionary<int, TableConfig> GetTableConfigDictonary(
string RomName)
23 Dictionary<int, TableConfig> D =
new Dictionary<int, TableConfig>();
25 bool FoundMatch =
false;
40 if (FoundMatch)
return D;
47 if (RomName.ToUpper().StartsWith(
"{0}_".Build(TC.
ShortRomName.ToUpper())))
56 if (FoundMatch)
return D;
82 public bool ContainsConfig(
string RomName)
84 return GetTableConfigDictonary(RomName).Count > 0;
94 public void LoadLedControlFiles(IList<string> LedControlFilenames,
bool ThrowExceptions =
false)
96 for (
int i = 0; i < LedControlFilenames.Count; i++)
98 LoadLedControlFile(LedControlFilenames[i], i + 1, ThrowExceptions);
122 public void LoadLedControlFile(
string LedControlFilename,
int LedWizNumber,
bool ThrowExceptions =
false)
124 Log.
Write(
"Loading LedControl file {0}".Build(LedControlFilename));
143 LoadLedControlFiles(LedControlFilenames, ThrowExceptions);
154 LoadLedControlFiles(LedControlIniFiles, ThrowExceptions);