GTA-V-Script-Decompiler icon indicating copy to clipboard operation
GTA-V-Script-Decompiler copied to clipboard

Disposes all streams

Open Tustin opened this issue 7 years ago • 0 comments

I made it so all the loadfile and savefile methods have their streams wrapped in using blocks so it will auto dispose and close all streams when finished. There was a bug with one of the loadfiles (I think for nativeinfo.dat) which would cause a crash when trying to create another stream on the same file for saving because loadfile wasn't closed properly.

Also sorry for the whole file being "edited", that was due to the original formatting and my bad habit of ctrl E + D 😛

Tustin avatar Mar 06 '17 17:03 Tustin