From 69494fc100a49717370b4130a5db71fe46615e97 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 23 Mar 2016 01:09:27 +0100 Subject: [PATCH] Snapmatic useful length is now 260 --- SavegameData.cpp | 6 ++++++ SavegameData.h | 17 +++++++++++++++++ SnapmaticPicture.cpp | 2 +- gta5sync.pro | 6 ++++-- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100755 SavegameData.cpp create mode 100755 SavegameData.h diff --git a/SavegameData.cpp b/SavegameData.cpp new file mode 100755 index 0000000..1be7c37 --- /dev/null +++ b/SavegameData.cpp @@ -0,0 +1,6 @@ +#include "SavegameData.h" + +SavegameData::SavegameData(QObject *parent) : QObject(parent) +{ + +} diff --git a/SavegameData.h b/SavegameData.h new file mode 100755 index 0000000..85aaa22 --- /dev/null +++ b/SavegameData.h @@ -0,0 +1,17 @@ +#ifndef SAVEGAMEDATA_H +#define SAVEGAMEDATA_H + +#include + +class SavegameData : public QObject +{ + Q_OBJECT +public: + explicit SavegameData(QObject *parent = 0); + +signals: + +public slots: +}; + +#endif // SAVEGAMEDATA_H \ No newline at end of file diff --git a/SnapmaticPicture.cpp b/SnapmaticPicture.cpp index c676290..4df482e 100755 --- a/SnapmaticPicture.cpp +++ b/SnapmaticPicture.cpp @@ -30,7 +30,7 @@ SnapmaticPicture::SnapmaticPicture(QObject *parent, QString fileName) : QObject( { // PARSE INT INIT - DO NOT CHANGE THIS VALUES snapmaticHeaderLength = 278; - snapmaticUsefulLength = 256; + snapmaticUsefulLength = 260; jpegHeaderLineDifStr = 2; jpegPreHeaderLength = 14; jpegPicStreamLength = 524288; diff --git a/gta5sync.pro b/gta5sync.pro index 580150c..e491737 100755 --- a/gta5sync.pro +++ b/gta5sync.pro @@ -30,14 +30,16 @@ SOURCES += main.cpp\ PictureDialog.cpp \ ProfileDatabase.cpp \ DatabaseThread.cpp \ - CrewDatabase.cpp + CrewDatabase.cpp \ + SavegameData.cpp HEADERS += \ SnapmaticPicture.h \ PictureDialog.h \ ProfileDatabase.h \ DatabaseThread.h \ - CrewDatabase.h + CrewDatabase.h \ + SavegameData.h FORMS += \ PictureDialog.ui