mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
hack: Ignore duplicate fields
(probably due to insufficient #iffery treatment we are processing extra lines that we shouldn't)
This commit is contained in:
parent
d07f3a97de
commit
577c5b21c3
@ -424,7 +424,14 @@ namespace RusticiSoftware.Translator
|
||||
FieldsD = new Hashtable();
|
||||
foreach (FieldRepTemplate ft in template.Fields)
|
||||
{
|
||||
FieldsD.Add(ft.Name, FieldRep.newInstance(ft, uPath));
|
||||
try
|
||||
{
|
||||
FieldsD.Add(ft.Name, FieldRep.newInstance(ft, uPath));
|
||||
}
|
||||
catch (Exception x)
|
||||
{
|
||||
Console.Out.WriteLine("Ignore duplicate field (#iffery?)");
|
||||
}
|
||||
}
|
||||
Casts = new CastRep[template.Casts.Length];
|
||||
for (int i = 0; i < template.Casts.Length; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user