mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Added runtime drag-and-drop file and folder support via new love.filedropped and love.directorydropped event callback functions. filedropped has a single File object argument, and directorydropped has a single string argument containing the full path of the directory, which can be used with love.filesystem.mount.
--HG-- branch : minor
This commit is contained in:
@@ -176,7 +176,7 @@ void ImageData::encode(love::filesystem::File *f, ImageData::Format format)
|
||||
|
||||
try
|
||||
{
|
||||
f->open(love::filesystem::File::WRITE);
|
||||
f->open(love::filesystem::File::MODE_WRITE);
|
||||
f->write(encodedimage.data, encodedimage.size);
|
||||
f->close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user