SaveVirtualVariables

Procedure SaveVirtualVariables([filepath: String="vvsave.txt], [manovs: Boolean=FALSE], [group: Integer=0])

(For how to use groups, see the advanced topic VirtualVariable Groups)

This function creates a text file saving the contents of all VirtualVariables (of the specified group) in memory to filepath.

While less verbose than VirtualVariableDump, it does produce output that can be read by ReadSettings.

Example Program:

Program
  Uses
basilisk
  
Begin
  InitBasilisk(TRUE)
  ReadSettings("settings.txt")
  SaveVirtualVariables("vvars.txt")   
End

Example output in vvars.txt

# TopHat Stuff Basilisk Library for CobraCore
# Virtual Varible Dump
# Group: 0

! win_width = 640
! win_height = 480
$ opt_message = Hello, World!

Advanced: If you are using Manual VirtualVariable Overrides, then specify manovs as TRUE to save each variable with an override symbol and an ALWAYS_OVERRIDE_DUPLICATES = FALSE header.