I have some issue with some lite-C (A7.66 Pro) code, where a file_open_write command is used.
When the file does not exist, it tries to create it (as is stated in the manual) in the save_dir directory.
The problem I see is that save_dir is NULL, which causes a whole set of issues (i.e. the file handle returned from file_open_write is '0' and any subsequent attempts to write to the file cause a crash [invalid pointer] ...). I know how to work around this issue, but one thing that interests me is where / how the save_dir is intialized (I know that I could set it in a .WDL ... I want to know how the engine does it).
Cheers,
Andreas