Browse Source

Hotfix for hidden + backup combo problem

1.3.x 1.1.1
Rafael 6 years ago
parent
commit
1bc4aead23
  1. 4
      SnapmaticEditor.cpp
  2. 2
      config.h
  3. 8
      res/app.rc

4
SnapmaticEditor.cpp

@ -191,17 +191,17 @@ void SnapmaticEditor::on_cmdApply_clicked()
{
QString originalFileName = smpic->getPictureFileName();
QString adjustedFileName = originalFileName;
QString backupFileName = originalFileName + ".bak";
if (adjustedFileName.right(7) == ".hidden") // for the hidden file system
{
adjustedFileName.remove(adjustedFileName.length() - 7, 7);
}
QString backupFileName = adjustedFileName + ".bak";
if (!QFile::exists(backupFileName))
{
QFile::copy(adjustedFileName, backupFileName);
}
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"));
}

2
config.h

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

8
res/app.rc

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

Loading…
Cancel
Save