The code now checks to make sure opening the file does not result in an error state. as long as var err == 0 or OK then everything will work. If not it will print out the error code to the console and continue along.
I checked this in my own project by saving a file with a password I set, and then opening it with a different one. Instead of crashing, the console printed "Error opening file. Error code: 16"
This will close #95
The code now checks to make sure opening the file does not result in an error state. as long as var err == 0 or OK then everything will work. If not it will print out the error code to the console and continue along.
I checked this in my own project by saving a file with a password I set, and then opening it with a different one. Instead of crashing, the console printed "Error opening file. Error code: 16"