68 |
|
public IConfigPlugin GetConfigPlugin(string t) |
69 |
|
{ |
70 |
|
foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } |
71 |
+ |
return GetGenericConfigPlugin(); |
72 |
+ |
} |
73 |
+ |
private IConfigPlugin GetGenericConfigPlugin() |
74 |
+ |
{ |
75 |
+ |
foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ID.ToString().ToLower() == "478e225b-c3e8-9280-57ca-384b884fc4cc".ToLower()) { return c; } } |
76 |
|
return null; |
77 |
|
} |
78 |
|
public IInputPlugin GetInputPlugin(string t) |
79 |
|
{ |
80 |
|
foreach (IInputPlugin c in LoadedInputPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } |
81 |
+ |
return GetGenericInputPlugin(); |
82 |
+ |
} |
83 |
+ |
private IInputPlugin GetGenericInputPlugin() |
84 |
+ |
{ |
85 |
+ |
foreach (IInputPlugin c in LoadedInputPlugins) { } |
86 |
|
return null; |
87 |
|
} |
88 |
|
public IWindowPlugin GetWindowPlugin(string t) |
89 |
|
{ |
90 |
|
foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } |
91 |
+ |
return GetGenericWindowPlugin(); |
92 |
+ |
} |
93 |
+ |
private IWindowPlugin GetGenericWindowPlugin() |
94 |
+ |
{ |
95 |
+ |
foreach (IWindowPlugin c in LoadedWindowPlugins) { } |
96 |
|
return null; |
97 |
|
} |
83 |
– |
|
98 |
|
#endregion |
99 |
|
|
100 |
|
private void GetConfigPluginsFromDll(FileInfo dll) |