Browse Source

remove player fetching to protect players

Syping 2 months ago
parent
commit
90265d23b8
4 changed files with 6 additions and 75 deletions
  1. 1
    1
      .ci/gta5view.nsi
  2. 0
    69
      DatabaseThread.cpp
  3. 1
    1
      config.h
  4. 4
    4
      res/app.rc

+ 1
- 1
.ci/gta5view.nsi View File

@@ -3,7 +3,7 @@
3 3
 !define APP_NAME "gta5view"
4 4
 !define COMP_NAME "Syping"
5 5
 !define WEB_SITE "https://gta5view.syping.de/"
6
-!define VERSION "1.6.0.0"
6
+!define VERSION "1.6.1.0"
7 7
 !define COPYRIGHT "Copyright © 2016-2018 Syping"
8 8
 !define DESCRIPTION "Grand Theft Auto V Savegame and Snapmatic Viewer/Editor"
9 9
 !define INSTALLER_NAME "gta5view_setup.exe"

+ 0
- 69
DatabaseThread.cpp View File

@@ -44,79 +44,10 @@ void DatabaseThread::run()
44 44
 {
45 45
     QEventLoop threadLoop;
46 46
 
47
-    QStringList crewList;
48
-    QStringList crewListR;
49
-
50
-    // Register thread loop end signal
51 47
     QObject::connect(this, SIGNAL(threadTerminated()), &threadLoop, SLOT(quit()));
52 48
 
53
-    // Setup crewList for Quick time scan
54
-    crewList = crewDB->getCrews();
55
-    if (!crewList.isEmpty())
56
-    {
57
-        crewListR = deleteCompatibleCrews(crewList);
58
-    }
59
-    else
60
-    {
61
-        while (crewList.isEmpty() && threadRunning)
62
-        {
63
-            QTimer::singleShot(1000, &threadLoop, SLOT(quit()));
64
-            threadLoop.exec();
65
-            if (!crewDB->isAddingCrews())
66
-            {
67
-                crewList = crewDB->getCrews();
68
-            }
69
-        }
70
-        if (threadRunning)
71
-        {
72
-            crewListR = deleteCompatibleCrews(crewList);
73
-        }
74
-    }
75
-
76
-    // Only do QTS when Thread should be run
77
-    if (threadRunning)
78
-    {
79
-        // Quick time scan
80
-#ifdef GTA5SYNC_DEBUG
81
-        qDebug() << "Start QTS";
82
-#endif
83
-        if (crewListR.length() <= 5)
84
-        {
85
-            scanCrewReference(crewListR, 2500);
86
-            emit crewNameUpdated();
87
-        }
88
-        if (crewList.length() <= 3)
89
-        {
90
-            scanCrewMembersList(crewList, 3, 2500);
91
-            emit playerNameUpdated();
92
-        }
93
-        else if (crewList.length() <= 5)
94
-        {
95
-            scanCrewMembersList(crewList, 2, 2500);
96
-            emit playerNameUpdated();
97
-        }
98
-
99
-        if (threadRunning)
100
-        {
101
-            QTimer::singleShot(10000, &threadLoop, SLOT(quit()));
102
-            threadLoop.exec();
103
-        }
104
-    }
105
-
106 49
     while (threadRunning)
107 50
     {
108
-        crewList = crewDB->getCrews();
109
-        crewListR = deleteCompatibleCrews(crewList);
110
-
111
-        // Long time scan
112
-#ifdef GTA5SYNC_DEBUG
113
-        qDebug() << "Start LTS";
114
-#endif
115
-        scanCrewReference(crewListR, 10000);
116
-        emit crewNameUpdated();
117
-        scanCrewMembersList(crewList, crewMaxPages, 10000);
118
-        emit playerNameUpdated();
119
-
120 51
         if (threadRunning)
121 52
         {
122 53
             QTimer::singleShot(300000, &threadLoop, SLOT(quit()));

+ 1
- 1
config.h View File

@@ -44,7 +44,7 @@
44 44
 #endif
45 45
 
46 46
 #ifndef GTA5SYNC_APPVER
47
-#define GTA5SYNC_APPVER "1.6.0"
47
+#define GTA5SYNC_APPVER "1.6.1"
48 48
 #endif
49 49
 
50 50
 #if __cplusplus

+ 4
- 4
res/app.rc View File

@@ -7,8 +7,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
7 7
 #include <windows.h>
8 8
 
9 9
 VS_VERSION_INFO     VERSIONINFO
10
-FILEVERSION         1, 6, 0, 0
11
-PRODUCTVERSION      1, 6, 0, 0
10
+FILEVERSION         1, 6, 1, 0
11
+PRODUCTVERSION      1, 6, 1, 0
12 12
 FILEFLAGSMASK       0x3fL
13 13
 FILEFLAGS           0
14 14
 FILEOS              VOS_NT_WINDOWS32
@@ -25,12 +25,12 @@ BEGIN
25 25
         BEGIN
26 26
             VALUE   "CompanyName",      "Syping"
27 27
             VALUE   "FileDescription",  "gta5view"
28
-            VALUE   "FileVersion",      "1.6.0"
28
+            VALUE   "FileVersion",      "1.6.1"
29 29
             VALUE   "InternalName",     "gta5view"
30 30
             VALUE   "LegalCopyright",   "Copyright © 2016-2018 Syping"
31 31
             VALUE   "OriginalFilename", "gta5view.exe"
32 32
             VALUE   "ProductName",      "gta5view"
33
-            VALUE   "ProductVersion",   "1.6.0"
33
+            VALUE   "ProductVersion",   "1.6.1"
34 34
         END
35 35
     END
36 36
 END