nickworonekin / puyotools

Puyo Tools is a collection of tools and libraries used to access the contents of various game files. Although it was initially built to handle files used in Puyo Puyo games, it can handle files used in other games as well.
MIT License
100 stars 24 forks source link

Fix some file handle leaks and improve SVR detection. #20

Closed GerbilSoft closed 5 years ago

GerbilSoft commented 5 years ago

TextureViewer.cs: Close the texture stream if we're not using it. Otherwise, we end up leaking handles.

SvrTexture.cs: Improve SVR detection.

GerbilSoft commented 5 years ago

N.B.: The file handles aren't actually "leaked", since the .NET runtime ends up cleaning them up eventually, but until they get cleaned up, the files remain locked and cannot be moved, renamed, etc.