Skip to content

Disposes all streams#4

Open
Tustin wants to merge 3 commits into
njames93:masterfrom
Tustin:master
Open

Disposes all streams#4
Tustin wants to merge 3 commits into
njames93:masterfrom
Tustin:master

Conversation

@Tustin
Copy link
Copy Markdown

@Tustin Tustin commented Mar 6, 2017

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 😛

Copy link
Copy Markdown
Owner

@njames93 njames93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the spaces back to tabs. Its how the rest of the project is (should be?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants