Browse Source

Hopefully a fix for a bug where if you declare a path in script starting with modules

Tim Newell 12 năm trước cách đây
mục cha
commit
d5e1b88181
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      engine/source/console/console.cc

+ 5 - 0
engine/source/console/console.cc

@@ -1534,6 +1534,11 @@ bool expandPath( char* pDstPath, U32 size, const char* pSrcPath, const char* pWo
         return true;
         return true;
     }
     }
 
 
+    //Using a special case here because the code below barfs on trying to build a full path for apk reading
+ #ifdef TORQUE_OS_ANDROID
+ 	   dSprintf(pathBuffer, sizeof(pathBuffer), "/%s", pSrcPath);
+ #endif
+
     // All else.
     // All else.
     Platform::makeFullPathName( pSrcPath, pathBuffer, sizeof(pathBuffer), pWorkingDirectoryHint );
     Platform::makeFullPathName( pSrcPath, pathBuffer, sizeof(pathBuffer), pWorkingDirectoryHint );