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:
Alex Szpakowski
2014-10-18 20:30:36 -03:00
parent af0371361f
commit 8d0654a6a7
25 changed files with 1151 additions and 428 deletions
+1 -1
View File
@@ -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();
}