Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disposes all streams #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Disposes all streams #4

wants to merge 3 commits into from

Conversation

Tustin
Copy link

@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
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