Ver Fonte

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

Tim Newell há 12 anos atrás
pai
commit
d5e1b88181
1 ficheiros alterados com 5 adições e 0 exclusões
  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;
     }
 
+    //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.
     Platform::makeFullPathName( pSrcPath, pathBuffer, sizeof(pathBuffer), pWorkingDirectoryHint );