Ver código fonte

Accept empty paths under android os

mikymod 12 anos atrás
pai
commit
ac1c62bd20
1 arquivos alterados com 4 adições e 2 exclusões
  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 (string::strlen(path) == 1)
 	{
 	{
-		if (path[0] == PATH_SEPARATOR)
+		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
 		{
 		{
 			return true;
 			return true;
 		}
 		}
@@ -111,9 +111,11 @@ bool is_absolute_path(const char* path)
 {
 {
 	CE_ASSERT(path != NULL, "Path must be != NULL");
 	CE_ASSERT(path != NULL, "Path must be != NULL");
 
 
+	return true;
+
 	if (string::strlen(path) > 0)
 	if (string::strlen(path) > 0)
 	{
 	{
-		if (path[0] == PATH_SEPARATOR)
+		if (path[0] == PATH_SEPARATOR || string::strcmp(path, "") == 0)
 		{
 		{
 			return true;
 			return true;
 		}
 		}