mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Attempt to close open files when File objects are destroyed
This commit is contained in:
@@ -42,6 +42,8 @@ namespace physfs
|
||||
|
||||
File::~File()
|
||||
{
|
||||
if (mode != CLOSED)
|
||||
close();
|
||||
}
|
||||
|
||||
bool File::open(Mode mode)
|
||||
|
||||
Reference in New Issue
Block a user