Browse Source

Fixed Android being unable to calculate file checksum.

Lasse Öörni 11 years ago
parent
commit
e7a599100e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/Engine/IO/File.cpp

+ 4 - 0
Source/Engine/IO/File.cpp

@@ -447,7 +447,11 @@ unsigned File::GetChecksum()
 {
     if (offset_ || checksum_)
         return checksum_;
+    #ifdef ANDROID
+    if ((!handle_ && !assetHandle_) || mode_ == FILE_WRITE)
+    #else
     if (!handle_ || mode_ == FILE_WRITE)
+    #endif
         return 0;
 
     PROFILE(CalculateFileChecksum);