2 Commity 8a004df873 ... 7f1d75a446

Autor SHA1 Wiadomość Data
  Double Sine 7f1d75a446 bump new version 16.0.7.0-2 2 lat temu
  Double Sine ce90ef2ade add support for ChartsCreator and ChartsViewer 2 lat temu

+ 5 - 3
navicat-keygen/CollectInformation.cpp

@@ -75,8 +75,10 @@ namespace nkg {
         std::cout << " 7. MariaDB"                  << std::endl;
         std::cout << " 8. MongoDB"                  << std::endl;
         std::cout << " 9. ReportViewer"             << std::endl;
+        std::cout << " 10. ChartsCreator"           << std::endl;
+        std::cout << " 11. ChartsViewer"            << std::endl;
         std::cout << std::endl;
-        sn_generator.set_software_type(static_cast<navicat_software_type>(read_int(0, 9, "(Input index)> ", "Invalid index.")));
+        sn_generator.set_software_type(static_cast<navicat_software_type>(read_int(0, 11, "(Input index)> ", "Invalid index.")));
 
         std::cout << std::endl;
         std::cout << "[*] Select product language:" << std::endl;
@@ -96,7 +98,7 @@ namespace nkg {
 
         std::cout << std::endl;
         std::cout << "[*] Input major version number:" << std::endl;
-        sn_generator.set_software_version(read_int(11, 16, 16, "(range: 11 ~ 16, default: 16)> ", "Invalid number."));
+        sn_generator.set_software_version(read_int(1, 16, 16, "(range: 1 ~ 16, default: 16)> ", "Invalid number."));
 
         std::cout << std::endl;
         return sn_generator;
@@ -121,7 +123,7 @@ namespace nkg {
 
         std::cout << std::endl;
         std::cout << "[*] Input major version number:" << std::endl;
-        sn_generator.set_software_version(read_int(0, 15, 12, "(range: 0 ~ 15, default: 12)> ", "Invalid number."));
+        sn_generator.set_software_version(read_int(1, 16, 16, "(range: 1 ~ 16, default: 16)> ", "Invalid number."));
 
         std::cout << std::endl;
         return sn_generator;

+ 1 - 1
navicat-keygen/main.cpp

@@ -25,7 +25,7 @@ namespace nkg {
 void welcome() {
     puts("***************************************************");
     puts("*       navicat-keygen by @DoubleLabyrinth        *");
-    puts("*                version: 16.0.7.0-1              *");
+    puts("*                version: 16.0.7.0-2              *");
     puts("***************************************************");
     puts("");
 }

+ 7 - 1
navicat-keygen/navicat_serial_generator.cpp

@@ -119,6 +119,12 @@ namespace nkg {
             case navicat_software_type::ReportViewer:
                 m_data[7] = 0xb;
                 break;
+            case navicat_software_type::ChartsCreator:
+                m_data[7] = 0x86;
+                break;
+            case navicat_software_type::ChartsViewer:
+                m_data[7] = 0x88;
+                break;
             default:
                 __builtin_unreachable();
         }
@@ -129,7 +135,7 @@ namespace nkg {
     }
 
     void navicat_serial_generator::set_software_version(int ver) {
-        if (11 <= ver && ver < 16) {
+        if (1 <= ver && ver < 16) {
             static_assert(sizeof(m_des_key) == sizeof(s_des_key0));
 
             m_data[8] = static_cast<std::uint8_t>((ver << 4) | (m_data[8] & 0x0f));

+ 3 - 1
navicat-keygen/navicat_serial_generator.hpp

@@ -29,7 +29,9 @@ namespace nkg {
         SQLite,
         MariaDB,
         MongoDB,
-        ReportViewer
+        ReportViewer,
+        ChartsCreator,
+        ChartsViewer
     };
 
     class navicat_serial_generator {

+ 1 - 1
navicat-patcher/main.cpp

@@ -31,7 +31,7 @@
 void welcome() {
     puts("***************************************************");
     puts("*       navicat-patcher by @DoubleLabyrinth       *");
-    puts("*               version: 16.0.7.0-1               *");
+    puts("*               version: 16.0.7.0-2               *");
     puts("***************************************************");
     puts("");
 }