Daniele Bartolini 10 vuotta sitten
vanhempi
sitoutus
36b63f156d

+ 1 - 1
src/core/filesystem/disk_filesystem.cpp

@@ -148,7 +148,7 @@ void DiskFilesystem::list_files(const char* path, Vector<DynamicString>& files)
 
 void DiskFilesystem::get_absolute_path(const char* path, DynamicString& os_path)
 {
-	if (path::is_absolute_path(path))
+	if (path::is_absolute(path))
 	{
 		os_path = path;
 		return;

+ 4 - 4
src/core/filesystem/path.cpp

@@ -11,7 +11,7 @@ namespace crown
 {
 namespace path
 {
-	bool is_absolute_path(const char* path)
+	bool is_absolute(const char* path)
 	{
 		CE_ASSERT(path != NULL, "Path must be != NULL");
 #if CROWN_PLATFORM_POSIX
@@ -21,13 +21,13 @@ namespace path
 #endif
 	}
 
-	bool is_root_path(const char* path)
+	bool is_root(const char* path)
 	{
 		CE_ASSERT(path != NULL, "Path must be != NULL");
 #if CROWN_PLATFORM_POSIX
-		return is_absolute_path(path) && strlen32(path) == 1;
+		return is_absolute(path) && strlen32(path) == 1;
 #elif CROWN_PLATFORM_WINDOWS
-		return is_absolute_path(path) && strlen32(path) == 3;
+		return is_absolute(path) && strlen32(path) == 3;
 #endif
 	}
 

+ 2 - 2
src/core/filesystem/path.h

@@ -23,10 +23,10 @@ namespace crown
 namespace path
 {
 	/// Returns whether the @a path is absolute.
-	bool is_absolute_path(const char* path);
+	bool is_absolute(const char* path);
 
 	/// Returns whether the @a path is the root path.
-	bool is_root_path(const char* path);
+	bool is_root(const char* path);
 
 	/// Appends path @a b to @a a and fills @a path with the result.
 	void join(const char* a, const char* b, DynamicString& path);