If you have not given any talaq whether in written or verbal form before the case or after the case then the nikah of both of you is still intact. She is your wife and you are her husband. No talaq took place due to the case. After facing the case one year in the court, the child born in the meantime shall be your legitimate child and his lineage shall be with you. It shall not be illegal or illegitimate.
Allah knows Best!
Darul Uloom Deoband