Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes external editors by closing file handles #247
The external editors were never closing open file input streams after loading the data back into the IDE. This made it impossible to save more than once from the external editor without closing and reopening from inside LGM. Fixes all four frames with external editors including sprite editor, background editor, sound editor, and code/script editor. This fully addresses #223 as I did in master.
I also refined the exception catching to protect against certain faults. There are 3 different scenarios to consider. I tested extensively to ensure what I believe to be the correct behavior and to prevent dangling file handles. The only way the file wouldn't exist in any of these cases is if the user cleared their temporary files, in which case these handlers delete their reference to the file so it is safe.
Opening File Input Stream