mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user