projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expose getPointedThing to Lua
[oweals/minetest.git]
/
src
/
filesys.h
diff --git
a/src/filesys.h
b/src/filesys.h
index 19fcbb6734a3dc5281ee7abdcf1ef4fba69ed348..94d0c874dec6611e34c946b4d2ad40161ca06072 100644
(file)
--- a/
src/filesys.h
+++ b/
src/filesys.h
@@
-28,10
+28,12
@@
with this program; if not, write to the Free Software Foundation, Inc.,
#define DIR_DELIM "\\"
#define DIR_DELIM_CHAR '\\'
#define FILESYS_CASE_INSENSITIVE 1
#define DIR_DELIM "\\"
#define DIR_DELIM_CHAR '\\'
#define FILESYS_CASE_INSENSITIVE 1
+#define PATH_DELIM ";"
#else // POSIX
#define DIR_DELIM "/"
#define DIR_DELIM_CHAR '/'
#define FILESYS_CASE_INSENSITIVE 0
#else // POSIX
#define DIR_DELIM "/"
#define DIR_DELIM_CHAR '/'
#define FILESYS_CASE_INSENSITIVE 0
+#define PATH_DELIM ":"
#endif
namespace fs
#endif
namespace fs
@@
-113,6
+115,8
@@
const char *GetFilenameFromPath(const char *path);
bool safeWriteToFile(const std::string &path, const std::string &content);
bool safeWriteToFile(const std::string &path, const std::string &content);
+bool Rename(const std::string &from, const std::string &to);
+
} // namespace fs
#endif
} // namespace fs
#endif