]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/filesys.h
core.get_objects_inside_radius: Omit removed objects (#6318)
[dragonfireclient.git] / src / filesys.h
index 19fcbb6734a3dc5281ee7abdcf1ef4fba69ed348..5f246e3875deefb436ae590bfd1cde934c394018 100644 (file)
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef FILESYS_HEADER
-#define FILESYS_HEADER
+#pragma once
 
 #include <string>
 #include <vector>
@@ -27,11 +26,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifdef _WIN32 // WINDOWS
 #define DIR_DELIM "\\"
 #define DIR_DELIM_CHAR '\\'
-#define FILESYS_CASE_INSENSITIVE 1
+#define FILESYS_CASE_INSENSITIVE true
+#define PATH_DELIM ";"
 #else // POSIX
 #define DIR_DELIM "/"
 #define DIR_DELIM_CHAR '/'
-#define FILESYS_CASE_INSENSITIVE 0
+#define FILESYS_CASE_INSENSITIVE false
+#define PATH_DELIM ":"
 #endif
 
 namespace fs
@@ -113,7 +114,6 @@ const char *GetFilenameFromPath(const char *path);
 
 bool safeWriteToFile(const std::string &path, const std::string &content);
 
-} // namespace fs
-
-#endif
+bool Rename(const std::string &from, const std::string &to);
 
+} // namespace fs