From f51b22691eacb1c84af6c93e5d5c5f8b297762f9 Mon Sep 17 00:00:00 2001 From: Syping Date: Wed, 11 Oct 2017 11:28:22 +0200 Subject: [PATCH] updating gta5view-cmd for latest gta5sync source --- gta5sync | 2 +- gta5view-cmd.pro | 2 +- main.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gta5sync b/gta5sync index 9fa37cf..fc80429 160000 --- a/gta5sync +++ b/gta5sync @@ -1 +1 @@ -Subproject commit 9fa37cf797ef5f05514e0dbccdcc3673e13b9991 +Subproject commit fc8042939efc7db99ecaaf83f2ffe88171c151a6 diff --git a/gta5view-cmd.pro b/gta5view-cmd.pro index 7113fac..fc6d2b4 100644 --- a/gta5view-cmd.pro +++ b/gta5view-cmd.pro @@ -36,7 +36,7 @@ INCLUDEPATH += ./gta5sync # WINDOWS ONLY -win32: DEFINES += GTA5SYNC_WIN GTA5VIEW_CMD +win32: DEFINES += GTA5SYNC_WIN # win32: RC_FILE += res/app.rc win32: LIBS += -luser32 win32: CONFIG -= embed_manifest_exe diff --git a/main.cpp b/main.cpp index 8b14903..3388a42 100644 --- a/main.cpp +++ b/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) SnapmaticPicture picture(args.at(1)); if (picture.readingPicture(true, false, true)) { - if (!picture.exportPicture(args.at(2), "JPG")) + if (!picture.exportPicture(args.at(2), SnapmaticFormat::JPEG_Format)) { cout << "gta5view-cmd: Exporting of " << args.at(1).toStdString().c_str() << " to " << args.at(2).toStdString().c_str() << " failed!" << endl; return 1; @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) filePath.replace("", picture.getPictureFileName()); if (!customFormat) { - if (!picture.exportPicture(filePath, "PGTA")) + if (!picture.exportPicture(filePath, SnapmaticFormat::PGTA_Format)) { cout << "gta5view-cmd: Converting of " << args.at(1).toStdString().c_str() << " to " << args.at(2).toStdString().c_str() << " failed!" << endl; return 1; @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) } else { - if (!picture.exportPicture(filePath, "G5E")) + if (!picture.exportPicture(filePath, SnapmaticFormat::G5E_Format)) { cout << "gta5view-cmd: Converting of " << args.at(1).toStdString().c_str() << " to " << args.at(2).toStdString().c_str() << " failed!" << endl; return 1;