Просмотр исходного кода

Accept empty paths under android os

mikymod 12 лет назад
Родитель
Сommit
ac1c62bd20
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/os/android/AndroidOS.cpp

+ 4 - 2
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)
+		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
 		{
 			return true;
 		}
@@ -111,9 +111,11 @@ 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)
+		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
 		{
 			return true;
 		}