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
+2 -2
View File
@@ -20,7 +20,7 @@
// LOVE
#include "BMFontRasterizer.h"
#include "filesystem/physfs/Filesystem.h"
#include "filesystem/Filesystem.h"
#include "image/Image.h"
// C++
@@ -188,7 +188,7 @@ void BMFontRasterizer::parseConfig(const std::string &configtext)
// Load the page file from disk into an ImageData, if necessary.
if (images[pageindex].get() == nullptr)
{
using namespace love::filesystem::physfs;
using namespace love::filesystem;
Filesystem *filesystem = Module::getInstance<Filesystem>(Module::M_FILESYSTEM);
image::Image *imagemodule = Module::getInstance<image::Image>(Module::M_IMAGE);