Jelajahi Sumber

Use unix filesystem style for android

mikymod 12 tahun lalu
induk
melakukan
d972c33521
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  1. 2 4
      src/os/android/AndroidOS.cpp

+ 2 - 4
src/os/android/AndroidOS.cpp

@@ -97,7 +97,7 @@ bool is_root_path(const char* path)
 
 	if (string::strlen(path) == 1)
 	{
-		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
+		if (path[0] == PATH_SEPARATOR)
 		{
 			return true;
 		}
@@ -111,11 +111,9 @@ bool is_absolute_path(const char* path)
 {
 	CE_ASSERT(path != NULL, "Path must be != NULL");
 
-	return true;
-
 	if (string::strlen(path) > 0)
 	{
-		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
+		if (path[0] == PATH_SEPARATOR)
 		{
 			return true;
 		}