Add love.filesystem.openFile. Deprecate love.filesystem.newFile.

This commit is contained in:
Alex Szpakowski
2022-04-22 21:05:20 -03:00
parent e167a77994
commit b8ff64e9e3
6 changed files with 69 additions and 44 deletions
+2 -2
View File
@@ -165,9 +165,9 @@ public:
virtual bool unmountFullPath(const char *fullpath) = 0;
/**
* Creates a new file.
* Opens a new File object from the specified path, using the given mode.
**/
virtual File *newFile(const char *filename, File::Mode = File::MODE_CLOSED) const = 0;
virtual File *openFile(const char *filename, File::Mode mode) const = 0;
/**
* Creates a new FileData object. Data will be copied.