Forráskód Böngészése

Completed DatFileIO implementation

Ivan Arkhipov 6 éve
szülő
commit
3c5a06f053
3 módosított fájl, 5 hozzáadás és 3 törlés
  1. BIN
      bin/LotRO_dat_patcher.exe
  2. 2 0
      src/DatFile.cpp
  3. 3 3
      src/DatFileIO.cpp

BIN
bin/LotRO_dat_patcher.exe


+ 2 - 0
src/DatFile.cpp

@@ -89,6 +89,8 @@ namespace LOTRO_DAT {
             CloseDatFile();
             return NO_FILE_ERROR;
         }
+
+        dat_state_ = SUCCESS_DIRECTORIES;
         LOG(INFO) << "Starting MakeDictionary";
 
         result = MakeDictionary();

+ 3 - 3
src/DatFileIO.cpp

@@ -103,12 +103,12 @@ namespace LOTRO_DAT {
         if (constant1 != 0x4C5000) {
             LOG(ERROR) << "Variable at position 0x100 is not equal to .dat file constant!";
             return DatOperationResult(DatOperationResult::ERROR,
-                                      std::string("Variable at position 0x100 is not equal to .dat file constant!"));;
+                                      std::string("Variable at position 0x100 is not equal to .dat file constant!"));
         }
         if (constant2 != 0x5442) {
             LOG(ERROR) << "Variable at position 0x140 is not equal to .dat file constant!";
             return DatOperationResult(DatOperationResult::ERROR,
-                                      std::string("Variable at position 0x140 is not equal to .dat file constant!"));;
+                                      std::string("Variable at position 0x140 is not equal to .dat file constant!"));
         }
 
         if (file_size != actual_dat_size_) {
@@ -117,7 +117,7 @@ namespace LOTRO_DAT {
         }
 
         LOG(INFO) << "DatFileIO: Superblock read successfully";
-        return DatOperationResult(DatOperationResult::SUCCESS, std::string("Superblock read successfully."));;
+        return DatOperationResult(DatOperationResult::SUCCESS, std::string("Superblock read successfully."));
     }
 
     DatOperationResult DatFileIO::MakeDirectories() {