Hotfix for hidden + backup combo problem

This commit is contained in:
Rafael 2016-12-14 05:47:05 +01:00
parent 5a69b086a6
commit 1bc4aead23
3 changed files with 7 additions and 7 deletions

View file

@ -191,17 +191,17 @@ void SnapmaticEditor::on_cmdApply_clicked()
{ {
QString originalFileName = smpic->getPictureFileName(); QString originalFileName = smpic->getPictureFileName();
QString adjustedFileName = originalFileName; QString adjustedFileName = originalFileName;
QString backupFileName = originalFileName + ".bak";
if (adjustedFileName.right(7) == ".hidden") // for the hidden file system if (adjustedFileName.right(7) == ".hidden") // for the hidden file system
{ {
adjustedFileName.remove(adjustedFileName.length() - 7, 7); adjustedFileName.remove(adjustedFileName.length() - 7, 7);
} }
QString backupFileName = adjustedFileName + ".bak";
if (!QFile::exists(backupFileName)) if (!QFile::exists(backupFileName))
{ {
QFile::copy(adjustedFileName, backupFileName); QFile::copy(adjustedFileName, backupFileName);
} }
smpic->setSnapmaticProperties(localSpJson); smpic->setSnapmaticProperties(localSpJson);
if (!smpic->exportPicture(adjustedFileName)) if (!smpic->exportPicture(originalFileName))
{ {
QMessageBox::warning(this, tr("Snapmatic Properties"), tr("Patching of Snapmatic Properties failed because of I/O Error")); QMessageBox::warning(this, tr("Snapmatic Properties"), tr("Patching of Snapmatic Properties failed because of I/O Error"));
} }

View file

@ -30,7 +30,7 @@
#ifndef GTA5SYNC_APPVER #ifndef GTA5SYNC_APPVER
#ifndef GTA5SYNC_DAILYB #ifndef GTA5SYNC_DAILYB
#define GTA5SYNC_APPVER "1.1.0" #define GTA5SYNC_APPVER "1.1.1"
#else #else
#define GTA5SYNC_APPVER QString("%1").arg(GTA5SYNC_DAILYB) #define GTA5SYNC_APPVER QString("%1").arg(GTA5SYNC_DAILYB)
#endif #endif

View file

@ -3,8 +3,8 @@ IDI_ICON1 ICON DISCARDABLE "5sync.ico"
#include <windows.h> #include <windows.h>
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 1, 1, 0, 0 FILEVERSION 1, 1, 1, 0
PRODUCTVERSION 1, 1, 0, 0 PRODUCTVERSION 1, 1, 1, 0
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
FILEFLAGS 0 FILEFLAGS 0
FILEOS VOS_NT_WINDOWS32 FILEOS VOS_NT_WINDOWS32
@ -21,12 +21,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "Syping" VALUE "CompanyName", "Syping"
VALUE "FileDescription", "gta5view\0" VALUE "FileDescription", "gta5view\0"
VALUE "FileVersion", "1.1.0.0\0" VALUE "FileVersion", "1.1.1\0"
VALUE "InternalName", "gta5view\0" VALUE "InternalName", "gta5view\0"
VALUE "LegalCopyright", "Copyright © 2016 Syping\0" VALUE "LegalCopyright", "Copyright © 2016 Syping\0"
VALUE "OriginalFilename", "gta5view.exe\0" VALUE "OriginalFilename", "gta5view.exe\0"
VALUE "ProductName", "gta5view\0" VALUE "ProductName", "gta5view\0"
VALUE "ProductVersion", "1.1.0.0\0" VALUE "ProductVersion", "1.1.1\0"
END END
END END
END END