Skip to content

Commit 13b6d61

Browse files
committed
gta5view 1.10.2 release
- fix crash bug and upload issue
1 parent d7b28c2 commit 13b6d61

9 files changed

Lines changed: 52 additions & 15 deletions

File tree

.ci/app.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BEGIN
2424
VALUE "FileDescription", "gta5view"
2525
VALUE "FileVersion", "MAJOR_VER.MINOR_VER.PATCH_VERSTR_BUILD_VER"
2626
VALUE "InternalName", "gta5view"
27-
VALUE "LegalCopyright", "Copyright � 2016-2022 Syping"
27+
VALUE "LegalCopyright", "Copyright � 2016-2023 Syping"
2828
VALUE "OriginalFilename", "gta5view.exe"
2929
VALUE "ProductName", "gta5view"
3030
VALUE "ProductVersion", "MAJOR_VER.MINOR_VER.PATCH_VERSTR_BUILD_VER"

.ci/gta5view.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
!define APP_EXT ".g5e"
55
!define COMP_NAME "Syping"
66
!define WEB_SITE "https://gta5view.syping.de/"
7-
!define VERSION "1.10.1.1"
7+
!define VERSION "1.10.2.0"
88
!define COPYRIGHT "Copyright © 2016-2022 Syping"
99
!define DESCRIPTION "Open Source Snapmatic and Savegame viewer/editor for GTA V"
1010
!define INSTALLER_NAME "gta5view_setup.exe"

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ language: cpp
55

66
services:
77
- docker
8-
8+
99
env:
1010
global:
1111
- BUILD_TYPE=REL
@@ -27,7 +27,7 @@ matrix:
2727
- QT_SELECT=qt5-x86_64-w64-mingw32
2828
- RELEASE_LABEL="Windows 64-Bit Installer"
2929
- os: osx
30-
osx_image: xcode12.2
30+
osx_image: xcode14.2
3131
env:
3232
- BUILD_SCRIPT=osx_ci.sh
3333
- RELEASE_LABEL="Mac OS X 64-Bit Disk Image"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if(APPLE)
3838
res/gta5view.icns
3939
)
4040
set(MACOSX_BUNDLE_BUNDLE_NAME gta5view)
41-
set(MACOSX_BUNDLE_BUNDLE_VERSION 1.10.1)
41+
set(MACOSX_BUNDLE_BUNDLE_VERSION 1.10.2)
4242
set(MACOSX_BUNDLE_ICON_FILE gta5view.icns)
4343
set(MACOSX_BUNDLE_GUI_IDENTIFIER de.syping.gta5view)
4444
set_source_files_properties(res/gta5view.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")

ProfileInterface.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,16 @@ void ProfileInterface::directoryChanged(const QString &path)
287287
}
288288
if (fileName.startsWith("PGTA5") && !fileName.endsWith(".bak")) {
289289
t_snapmaticPics << fileName;
290-
if (!snapmaticPics.contains(fileName)) {
291-
n_snapmaticPics << fileName;
290+
if (fileName.endsWith(".hidden")) {
291+
const QString originalFileName = fileName.left(fileName.length() - 7);
292+
if (!snapmaticPics.contains(fileName) && !snapmaticPics.contains(originalFileName)) {
293+
n_snapmaticPics << fileName;
294+
}
295+
}
296+
else {
297+
if (!snapmaticPics.contains(fileName) && !snapmaticPics.contains(fileName % ".hidden")) {
298+
n_snapmaticPics << fileName;
299+
}
292300
}
293301
}
294302
}

RagePhoto.cpp

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@
3131
#include <chrono>
3232
#endif
3333

34+
inline quint32 joaatFromSI(const char *data, size_t size)
35+
{
36+
quint32 val = 0xE47AB81CUL;
37+
for (size_t i = 0; i != size; i++) {
38+
val += data[i];
39+
val += (val << 10);
40+
val ^= (val >> 6);
41+
}
42+
val += (val << 3);
43+
val ^= (val >> 11);
44+
val += (val << 15);
45+
return val;
46+
}
47+
3448
RagePhoto::RagePhoto()
3549
{
3650
p_photoFormat = PhotoFormat::Undefined;
@@ -530,8 +544,15 @@ bool RagePhoto::setJsonData(const QByteArray &data)
530544
QJsonDocument t_jsonDocument = QJsonDocument::fromJson(data);
531545
if (t_jsonDocument.isNull())
532546
return false;
533-
p_jsonData = t_jsonDocument.toJson(QJsonDocument::Compact);
534547
p_jsonObject = t_jsonDocument.object();
548+
// serializer band-aid
549+
QJsonObject t_jsonObject = p_jsonObject;
550+
t_jsonObject["sign"] = "__gta5view.sign";
551+
t_jsonDocument.setObject(t_jsonObject);
552+
p_jsonData = t_jsonDocument.toJson(QJsonDocument::Compact);
553+
char sign_char[24];
554+
sprintf(sign_char, "%llu", (0x100000000000000ULL | joaatFromSI(p_photoData.constData(), p_photoData.size())));
555+
p_jsonData.replace("\"__gta5view.sign\"", sign_char);
535556
return true;
536557
}
537558

@@ -555,6 +576,8 @@ bool RagePhoto::setPhotoData(const QByteArray &data)
555576
if (size > p_photoBuffer)
556577
return false;
557578
p_photoData = data;
579+
// serializer band-aid
580+
setJsonData(p_jsonData);
558581
return true;
559582
}
560583

@@ -563,6 +586,8 @@ bool RagePhoto::setPhotoData(const char *data, int size)
563586
if (static_cast<quint32>(size) > p_photoBuffer)
564587
return false;
565588
p_photoData = QByteArray(data, size);
589+
// serializer band-aid
590+
setJsonData(p_jsonData);
566591
return true;
567592
}
568593

@@ -640,6 +665,9 @@ QByteArray RagePhoto::save(PhotoFormat photoFormat)
640665

641666
void RagePhoto::save(QIODevice *ioDevice, PhotoFormat photoFormat)
642667
{
668+
// serializer band-aid
669+
setJsonData(p_jsonData);
670+
643671
if (photoFormat == PhotoFormat::G5EX) {
644672
char uInt32Buffer[4];
645673
quint32 format = static_cast<quint32>(PhotoFormat::G5EX);

config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
#endif
4848

4949
#ifndef GTA5SYNC_COPYRIGHT
50-
#define GTA5SYNC_COPYRIGHT "2016-2022"
50+
#define GTA5SYNC_COPYRIGHT "2016-2023"
5151
#endif
5252

5353
#ifndef GTA5SYNC_APPVER
54-
#define GTA5SYNC_APPVER "1.10.1"
54+
#define GTA5SYNC_APPVER "1.10.2"
5555
#endif
5656

5757
#if __cplusplus

res/app.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ IDI_ICON1 ICON DISCARDABLE "5sync.ico"
44
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
55
#include <windows.h>
66
VS_VERSION_INFO VERSIONINFO
7-
FILEVERSION 1, 10, 1, 2
8-
PRODUCTVERSION 1, 10, 1, 2
7+
FILEVERSION 1, 10, 2, 0
8+
PRODUCTVERSION 1, 10, 2, 0
99
FILEFLAGSMASK 0x3fL
1010
FILEFLAGS 0
1111
FILEOS VOS_NT_WINDOWS32
@@ -22,12 +22,12 @@ BEGIN
2222
BEGIN
2323
VALUE "CompanyName", "Syping"
2424
VALUE "FileDescription", "gta5view"
25-
VALUE "FileVersion", "1.10.1"
25+
VALUE "FileVersion", "1.10.2"
2626
VALUE "InternalName", "gta5view"
27-
VALUE "LegalCopyright", "Copyright � 2016-2022 Syping"
27+
VALUE "LegalCopyright", "Copyright � 2016-2023 Syping"
2828
VALUE "OriginalFilename", "gta5view.exe"
2929
VALUE "ProductName", "gta5view"
30-
VALUE "ProductVersion", "1.10.1"
30+
VALUE "ProductVersion", "1.10.2"
3131
END
3232
END
3333
END

res/de.syping.gta5view.metainfo.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<developer_name>Syping</developer_name>
3535

3636
<releases>
37+
<release date="2022-03-15" version="1.10.2"/>
3738
<release date="2021-06-17" version="1.10.1"/>
3839
<release date="2021-05-27" version="1.10.0"/>
3940
<release date="2021-03-22" version="1.9.2"/>

0 commit comments

Comments
 (0)