Main_SaveProjectEx-function should return a "didn't save" hint
I just noticed, that the Main_SaveProjectEx-function shows an error-message, if a project couldn't be saved, but gives no note toward the scripter, that failing has saved.
This could be difficult, if I have a script, that stores the project and wants to do things with the rpp afterwards, cause: If the saving didn't work, then I shouldn't do the next steps.
If one would save using a filename, that doesn't exists, file_exists() could allow checking, if the file exists and if it doesn't I know something is wrong.
However, if the filename already exists, I can't check, that it wasn't stored.
(Unless I load the previous file as string, load the "after"-file as string, and compare them, but huge projectfiles make this extremly slow).
So, I would like to have a boolean retval in this function that returns, if saving the file was successful or an error occured, so I can react to it accordingly.
|