#20 Обновление до версии 8.0.0

ادغام شده
Endevir 1 کامیت ادغام شده از LotRO_Legacy/r/Version-8.0.0 به LotRO_Legacy/dev 5 سال پیش
5فایلهای تغییر یافته به همراه35 افزوده شده و 10 حذف شده
  1. 5 1
      CHANGELOG
  2. 2 2
      CMakeLists.txt
  3. 17 0
      LotroDat.h.tmpl
  4. 9 5
      include/LotroDat.h
  5. 2 2
      src/DatFile.cpp

+ 5 - 1
CHANGELOG

@@ -75,4 +75,8 @@ Version 7.2.1
     * Bug fixes (Text files used incorrect fragments during import, if there was no fragment in patch with specified id)
 ----------------------------------------------------------------------
 Version 7.2.2
-    * Small fixes, added one more protection layer: locales dictionary now contains hash of header at the moment of last patch applying. So that system can easily detect if file was modified and there's a need to update patches.
+    * Small fixes, added one more protection layer: locales dictionary now contains hash of header at the moment of last patch applying. So that system can easily detect if file was modified and there's a need to update patches.
+----------------------------------------------------------------------
+Version 8.0.0
+    * Made locales initialization and patching process more stable
+    * Minor code improvements in binary examples (patcher, extractor)   

+ 2 - 2
CMakeLists.txt

@@ -3,8 +3,8 @@ project(LotroDat)
 
 set(CMAKE_CXX_STANDARD 14)
 set(PROJECT_BINARY_DIR bin)
-set(PROJECT_VERSION 7.2.2)
-
+set(PROJECT_VERSION 8.0.0)
+configure_file(${CMAKE_SOURCE_DIR}/LotroDat.h.tmpl ${CMAKE_SOURCE_DIR}/include/LotroDat.h)
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} -Wall -Wextra -O2")
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
 

+ 17 - 0
LotroDat.h.tmpl

@@ -0,0 +1,17 @@
+#ifndef LOTRO_DAT_LIB
+#define LOTRO_DAT_LIB
+
+#define LOTRO_DAT_VERSION  "@PROJECT_VERSION@"
+#define LOTRO_DAT_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@"
+#define LOTRO_DAT_VERSION_MINOR "@PROJECT_VERSION_MINOR@"
+#define LOTRO_DAT_VERSION_PATCH "@PROJECT_VERSION_PATCH@"
+
+#include "DatFile.h"
+#include "Database.h"
+#include "SubfileData.h"
+#include "DatOperationResult.h"
+
+#include <yaml-cpp/yaml.h>
+#include <ZLib/zlib.h>
+
+#endif /* LOTRO_DAT_LIB */

+ 9 - 5
include/LotroDat.h

@@ -1,8 +1,10 @@
-//
-// Created by Иван_Архипов on 01.11.2017.
-//
+#ifndef LOTRO_DAT_LIB
+#define LOTRO_DAT_LIB
 
-#define LOTRO_DAT_VERSION "7.3.0"
+#define LOTRO_DAT_VERSION  "8.0.0"
+#define LOTRO_DAT_VERSION_MAJOR ""
+#define LOTRO_DAT_VERSION_MINOR ""
+#define LOTRO_DAT_VERSION_PATCH ""
 
 #include "DatFile.h"
 #include "Database.h"
@@ -10,4 +12,6 @@
 #include "DatOperationResult.h"
 
 #include <yaml-cpp/yaml.h>
-#include <ZLib/zlib.h>
+#include <ZLib/zlib.h>
+
+#endif /* LOTRO_DAT_LIB */

+ 2 - 2
src/DatFile.cpp

@@ -139,9 +139,9 @@ namespace LOTRO_DAT {
 
         fprintf(out, "########################################################################################\n"
                      "# LOTRO Dat library version: %8s                                                  #\n"
-                     "# Author: Gi1dor (e1.gildor@gmail.com)                                                 #\n"
+                     "# Author: Endevir (aka Gi1dor) (me@endevir.ru)                                         #\n"
                      "# Is part of LOTRO Legacy project (http://translate.lotros.ru/)                        #\n"
-                     "# Last version is available on http://git.gi1dor.ru/LotRO_Legacy/Universal_dat_library #\n"
+                     "# Last version is available on http://git.endevir.ru/LotRO_Legacy/LotroDat             #\n"
                      "########################################################################################\n\n\n",
                 LOTRO_DAT_VERSION);