Open Gh0stBlade opened 1 year ago
Hi @Gh0stBlade,
Thanks for reporting the issue. It was a long time ago since we were developing the sym
tools. We only do it when we get the inspiration to, as open source coding should be passion driver :P
That being said, if you are familiar with Go development then the code should be quite explanatory. Adding support for new types should be rather easy. Just look at the existing examples of how to parse types them in sym/csym/parse_types.go
.
In this case, it seems that the struct type MultiSignal
cannot be located prior to use. To get around this issue, you may modify parseBase
to add a "stub" struct for unknown structs, as follows:
case sym.BaseStruct:
t, ok := p.Structs[tag]
if !ok {
stubStructType := &c.StructType{
Tag: tag,
}
p.Structs[tag] = stubStructType
t = stubStructType
}
return t
No idea if this will actually work, or just get stuck at some other error, but feel free to try.
Also, if you so wish. Upload an attachment of the KAIN2.SYM
file, so it can be used for reproducing the issue.
Wish you a happy end of the calendar year and happy coding : )
Cheers, Robin
Log: