Re-add love.filesystem.exists.

It's still useful sometimes because it's a bit cheaper than getInfo.
This commit is contained in:
Alex Szpakowski
2022-04-22 21:11:39 -03:00
parent b8ff64e9e3
commit 4e051c6faa
4 changed files with 22 additions and 0 deletions
+5
View File
@@ -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.