Add the ability to export to an IBT file

This commit is contained in:
2025-01-03 14:31:25 +00:00
parent 300c86190b
commit f925cede6d
2 changed files with 31 additions and 8 deletions
+6
View File
@@ -226,5 +226,11 @@ func (i *IBT) Update(timeout time.Duration) (IRacingState, error) {
i.Vars.Tick++
}
// Make this happen in a different thread, or have this send to a queue that has a thread
// writing to a file
if i.FileToExport != "" {
i.ExportToIBT(i.FileToExport)
}
return Running, nil
}