Kaynağa Gözat

Updated LotroDat library to version 7.2.2

Ivan Arkhipov 5 yıl önce
ebeveyn
işleme
7878348e52

+ 1 - 1
import/LotroDat/DatSubsystems/DatIO.h

@@ -50,7 +50,7 @@ namespace LOTRO_DAT {
 
         DatOperationResult<> DeInit();
 
-        unsigned int getHeaderHash();
+        unsigned int GetHeaderHash();
     private:
 
         void ClearData();

+ 2 - 0
import/LotroDat/LotroDat.h

@@ -2,6 +2,8 @@
 // Created by Иван_Архипов on 01.11.2017.
 //
 
+#define LOTRO_DAT_VERSION "7.2.2"
+
 #include "DatFile.h"
 #include "Database.h"
 #include "SubfileData.h"

+ 1 - 1
import/LotroDat/Subfiles/DdsSubFile.h

@@ -14,7 +14,7 @@ namespace LOTRO_DAT {
         explicit DdsSubFile(const DdsSubFile &other) = delete;
         DdsSubFile &operator =(const DdsSubFile &other) = delete;
 
-        DdsSubFile(SubFile preinit_file);
+        explicit DdsSubFile(SubFile preinit_file);
 
         FILE_TYPE FileType() const override;
 

+ 1 - 1
import/LotroDat/Subfiles/FontSubFile.h

@@ -15,7 +15,7 @@ namespace LOTRO_DAT {
         explicit FontSubFile(const FontSubFile &other) = delete;
         FontSubFile &operator =(const FontSubFile &other) = delete;
 
-        FontSubFile(SubFile preinit_file);
+        explicit FontSubFile(SubFile preinit_file);
 
         FILE_TYPE FileType() const override;
 

+ 1 - 1
import/LotroDat/Subfiles/JpgSubFile.h

@@ -15,7 +15,7 @@ namespace LOTRO_DAT {
         explicit JpgSubFile(const JpgSubFile &other) = delete;
         JpgSubFile &operator =(const JpgSubFile &other) = delete;
 
-        JpgSubFile(SubFile preinit_file);
+        explicit JpgSubFile(SubFile preinit_file);
 
 
         FILE_TYPE FileType() const override;

+ 1 - 1
import/LotroDat/Subfiles/OggSubFile.h

@@ -14,7 +14,7 @@ namespace LOTRO_DAT {
         explicit OggSubFile(const OggSubFile &other) = delete;
         OggSubFile &operator =(const OggSubFile &other) = delete;
 
-        OggSubFile(SubFile preinit_file);
+        explicit OggSubFile(SubFile preinit_file);
 
         FILE_TYPE FileType() const override;
         std::string Extension() const override;

+ 2 - 2
import/LotroDat/Subfiles/TextSubFile.h

@@ -18,8 +18,8 @@ namespace LOTRO_DAT {
         std::u16string text;
         std::string args;
 
-        bool operator < (const TextFragment &other) const {
-            return fragment_id < other.fragment_id;
+        friend bool operator < (const TextFragment &first, const TextFragment &second) {
+            return first.fragment_id < second.fragment_id;
         }
     };
 

+ 1 - 1
import/LotroDat/Subfiles/UnknownSubFile.h

@@ -14,7 +14,7 @@ namespace LOTRO_DAT {
         explicit UnknownSubFile(const UnknownSubFile &other) = delete;
         SubFile &operator =(const UnknownSubFile &other) = delete;
 
-        UnknownSubFile(SubFile preinit_file);
+        explicit UnknownSubFile(SubFile preinit_file);
 
         FILE_TYPE FileType() const override;
         std::string Extension() const override;

+ 1 - 1
import/LotroDat/Subfiles/WavSubFile.h

@@ -14,7 +14,7 @@ namespace LOTRO_DAT {
         explicit WavSubFile(const WavSubFile &other) = delete;
         WavSubFile &operator =(const WavSubFile &other) = delete;
 
-        WavSubFile(SubFile preinit_file);
+        explicit WavSubFile(SubFile preinit_file);
 
 
         FILE_TYPE FileType() const override;