mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
File objects inherit from Stream.
This commit is contained in:
@@ -420,7 +420,7 @@ Message *Event::convert(const SDL_Event &e)
|
||||
}
|
||||
else
|
||||
{
|
||||
auto *file = new love::filesystem::NativeFile(e.drop.file);
|
||||
auto *file = new love::filesystem::NativeFile(e.drop.file, love::filesystem::File::MODE_CLOSED);
|
||||
vargs.emplace_back(&love::filesystem::NativeFile::type, file);
|
||||
msg = new Message("filedropped", vargs);
|
||||
file->release();
|
||||
|
||||
Reference in New Issue
Block a user