mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Re-add love.filesystem.exists.
It's still useful sometimes because it's a bit cheaper than getInfo.
This commit is contained in:
@@ -216,6 +216,11 @@ public:
|
||||
**/
|
||||
virtual std::string getRealDirectory(const char *filename) const = 0;
|
||||
|
||||
/**
|
||||
* Gets whether anything exists at the specified path.
|
||||
**/
|
||||
virtual bool exists(const char *filepath) const = 0;
|
||||
|
||||
/**
|
||||
* Gets information about the item at the specified filepath. Returns false
|
||||
* if nothing exists at the path.
|
||||
|
||||
Reference in New Issue
Block a user