1
0
Fork 0
mirror of https://gitlab.com/Syping/gta5view-cmd synced 2024-11-21 21:20:22 +01:00
gta5view-cmd/main.cpp

491 lines
23 KiB
C++
Raw Permalink Normal View History

2018-02-21 12:11:43 +01:00
/*****************************************************************************
* gta5view-cmd - gta5view Command Line
2020-11-15 13:19:18 +01:00
* Copyright (C) 2017-2020 Syping
2018-02-21 12:11:43 +01:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
2018-02-21 12:12:51 +01:00
#include "SnapmaticPicture.h"
2018-02-21 12:11:43 +01:00
#include <QCoreApplication>
#include <QImageReader>
#include <QDateTime>
#include <QPainter>
#include <QImage>
#include <QMap>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QStringList args = a.arguments();
2020-11-15 13:19:18 +01:00
if (args.length() >= 3) {
2018-02-21 12:11:43 +01:00
QString format = "jpg";
bool isDefault = true;
bool avatarMode = false;
2020-11-15 13:19:18 +01:00
bool eXtendMode = false;
2018-08-14 01:50:59 +02:00
bool ignoreORes = false;
2018-02-21 12:11:43 +01:00
bool convertToGTA = false;
bool customFormat = false;
bool formatSwitch = false;
bool keepAspectRatio = true;
QMap<QString,QString> flags;
2020-11-15 13:19:18 +01:00
if (args.length() >= 4) {
if (args.at(3) == "-pgta") {
2018-02-21 12:11:43 +01:00
convertToGTA = true;
customFormat = false;
}
2020-11-15 13:19:18 +01:00
else if (args.at(3) == "-g5e") {
2018-02-21 12:11:43 +01:00
convertToGTA = true;
customFormat = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(3) == "-jpg") {
2018-02-21 12:11:43 +01:00
format = "jpg";
convertToGTA = false;
}
}
2020-11-15 13:19:18 +01:00
if (args.length() >= 5) {
if (args.at(4) == "-a") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-aX") {
isDefault = false;
avatarMode = true;
eXtendMode = true;
}
else if (args.at(4) == "-p") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = false;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-pX") {
isDefault = false;
avatarMode = false;
eXtendMode = true;
}
else if (args.at(4) == "-d") {
isDefault = true;
}
else if (args.at(4) == "-dX") {
2018-02-21 12:11:43 +01:00
isDefault = true;
2020-11-15 13:19:18 +01:00
eXtendMode = true;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-fs") {
2018-08-14 01:50:59 +02:00
convertToGTA = false;
formatSwitch = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-aiar") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = true;
keepAspectRatio = false;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-aiarX") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = true;
2020-11-15 13:19:18 +01:00
eXtendMode = true;
keepAspectRatio = false;
}
else if (args.at(4) == "-akar") {
isDefault = false;
avatarMode = true;
keepAspectRatio = true;
}
else if (args.at(4) == "-akarX") {
isDefault = false;
avatarMode = true;
eXtendMode = true;
2018-02-21 12:11:43 +01:00
keepAspectRatio = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-piar") {
isDefault = false;
avatarMode = false;
keepAspectRatio = false;
}
else if (args.at(4) == "-piarX") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = false;
2020-11-15 13:19:18 +01:00
eXtendMode = true;
2018-02-21 12:11:43 +01:00
keepAspectRatio = false;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-pkar") {
2018-02-21 12:11:43 +01:00
isDefault = false;
avatarMode = false;
keepAspectRatio = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-pkarX") {
isDefault = false;
avatarMode = false;
eXtendMode = true;
keepAspectRatio = true;
}
else if (args.at(4) == "-diar") {
2018-02-21 12:11:43 +01:00
isDefault = true;
keepAspectRatio = false;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-diarX") {
2018-02-21 12:11:43 +01:00
isDefault = true;
2020-11-15 13:19:18 +01:00
eXtendMode = true;
keepAspectRatio = false;
}
else if (args.at(4) == "-dkar") {
isDefault = true;
keepAspectRatio = true;
}
else if (args.at(4) == "-dkarX") {
isDefault = true;
eXtendMode = true;
2018-02-21 12:11:43 +01:00
keepAspectRatio = true;
}
2020-11-15 13:19:18 +01:00
else if (args.at(4) == "-ior") {
isDefault = false;
ignoreORes = true;
keepAspectRatio = false;
}
else if (args.at(4) == "-iorX") {
2018-08-14 01:50:59 +02:00
isDefault = false;
ignoreORes = true;
2020-11-15 13:19:18 +01:00
eXtendMode = true;
2018-08-14 01:50:59 +02:00
keepAspectRatio = false;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
QStringList currentFlagArg = args.at(4).split("=");
QString currentFlag = currentFlagArg.at(0).toLower();
2020-11-15 13:19:18 +01:00
if (currentFlag.at(0) == '-') {
currentFlag.remove(0, 1);
2020-11-15 13:19:18 +01:00
currentFlagArg.removeFirst();
const QString currentValue = currentFlagArg.join(QString());
flags[currentFlag] = currentValue;
}
}
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
if (args.length() >= 6) {
2018-02-21 12:11:43 +01:00
QStringList flagArgs(args);
2020-11-15 13:19:18 +01:00
for (int argId = 0; argId == 5; argId++) {
2018-02-21 12:11:43 +01:00
flagArgs.removeAt(argId);
}
2020-11-15 13:19:18 +01:00
for (const QString &flagArg : flagArgs) {
2018-02-21 12:11:43 +01:00
QStringList currentFlagArg = flagArg.split("=");
QString currentFlag = currentFlagArg.at(0).toLower();
2020-11-15 13:19:18 +01:00
if (currentFlag.at(0) == '-') {
2018-02-21 12:11:43 +01:00
currentFlag.remove(0, 1);
2020-11-15 13:19:18 +01:00
currentFlagArg.removeFirst();
const QString currentValue = currentFlagArg.join(QString());
2018-02-21 12:11:43 +01:00
flags[currentFlag] = currentValue;
}
}
}
2020-11-15 13:19:18 +01:00
if (!convertToGTA) {
2018-02-21 12:11:43 +01:00
SnapmaticPicture picture(args.at(1));
2020-11-15 13:19:18 +01:00
if (picture.readingPicture(false)) {
2018-02-21 12:11:43 +01:00
QString filePath = args.at(2);
2020-11-15 13:19:18 +01:00
if (!formatSwitch) {
2018-02-21 12:11:43 +01:00
filePath.replace("<autodef>", picture.getExportPictureFileName());
filePath.replace("<autoext>", ".jpg");
2020-11-15 13:19:18 +01:00
if (!picture.exportPicture(filePath, SnapmaticFormat::JPEG_Format)) {
cout << "gta5view-cmd: Exporting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
else {
if (flags.value("output", QString()).toLower() == "exported_filename") {
cout << filePath.toStdString() << endl;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Exporting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is successful!" << endl;
2018-02-21 12:11:43 +01:00
}
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
filePath.replace("<autodef>", picture.getPictureFileName());
2020-11-15 13:19:18 +01:00
if (customFormat) {
2018-02-21 12:11:43 +01:00
filePath.replace("<autoext>", ".g5e");
2020-11-15 13:19:18 +01:00
if (!picture.exportPicture(filePath, SnapmaticFormat::G5E_Format)) {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
else {
if (flags.value("output", QString()).toLower() == "exported_filename") {
cout << filePath.toStdString() << endl;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is successful!" << endl;
2018-02-21 12:11:43 +01:00
}
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
filePath.replace("<autoext>", "");
2020-11-15 13:19:18 +01:00
if (!picture.exportPicture(filePath, SnapmaticFormat::PGTA_Format)) {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
else {
if (flags.value("output", QString()).toLower() == "exported_filename") {
cout << filePath.toStdString() << endl;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is successful!" << endl;
2018-02-21 12:11:43 +01:00
}
}
}
}
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Reading of " << args.at(1).toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
SnapmaticPicture picture(":/template.g5e");
2020-11-15 13:19:18 +01:00
if (picture.readingPicture(false)) {
2018-02-21 12:11:43 +01:00
QImage image;
QFile imageFile(args.at(1));
2020-11-15 13:19:18 +01:00
if (!imageFile.open(QFile::ReadOnly)) {
cout << "gta5view-cmd: Reading of " << args.at(1).toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
QImageReader imageReader;
imageReader.setDecideFormatFromContent(true);
imageReader.setDevice(&imageFile);
2020-11-15 13:19:18 +01:00
if (!imageReader.read(&image)) {
cout << "gta5view-cmd: Parsing of " << args.at(1).toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
if (!image.isNull()) {
if (!ignoreORes) {
2018-08-14 01:50:59 +02:00
QSize snapmaticRes(960, 536);
QSize avatarRes(470, 470);
int avatarZoneX = 145;
int avatarZoneY = 66;
2020-11-15 13:19:18 +01:00
if (isDefault) {
if (image.width() == image.height()) {
2018-08-14 01:50:59 +02:00
avatarMode = true;
}
2020-11-15 13:19:18 +01:00
else {
2018-08-14 01:50:59 +02:00
avatarMode = false;
}
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
if (!avatarMode) {
2018-08-14 01:50:59 +02:00
QImage snapmaticImage(snapmaticRes, QImage::Format_RGB888);
snapmaticImage.fill(Qt::black);
QPainter snapmaticPainter(&snapmaticImage);
2018-02-21 12:11:43 +01:00
2018-08-14 01:50:59 +02:00
// Picture mode
int diffWidth = 0;
int diffHeight = 0;
2020-11-15 13:19:18 +01:00
if (keepAspectRatio) {
2018-08-14 01:50:59 +02:00
image = image.scaled(snapmaticRes, Qt::KeepAspectRatio, Qt::SmoothTransformation);
2020-11-15 13:19:18 +01:00
if (image.width() != snapmaticRes.width()) {
2018-08-14 01:50:59 +02:00
diffWidth = snapmaticRes.width() - image.width();
diffWidth = diffWidth / 2;
}
2020-11-15 13:19:18 +01:00
else if (image.height() != snapmaticRes.height()) {
2018-08-14 01:50:59 +02:00
diffHeight = snapmaticRes.height() - image.height();
diffHeight = diffHeight / 2;
}
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
2018-08-14 01:50:59 +02:00
image = image.scaled(snapmaticRes.width(), snapmaticRes.height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
2018-02-21 12:11:43 +01:00
}
2018-08-14 01:50:59 +02:00
snapmaticPainter.drawImage(0 + diffWidth, 0 + diffHeight, image);
snapmaticPainter.end();
image = snapmaticImage;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
2018-08-14 01:50:59 +02:00
QImage snapmaticImage(snapmaticRes, QImage::Format_RGB888);
snapmaticImage.fill(Qt::black);
QPainter snapmaticPainter(&snapmaticImage);
2018-02-21 12:11:43 +01:00
2018-08-14 01:50:59 +02:00
// Scale to Avatar Resolution if needed
2020-11-15 13:19:18 +01:00
if (image.width() != avatarRes.width()) {
2018-08-14 01:50:59 +02:00
image.scaled(avatarRes, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
}
2018-02-21 12:11:43 +01:00
2018-08-14 01:50:59 +02:00
// Avatar mode
int diffWidth = 0;
int diffHeight = 0;
2020-11-15 13:19:18 +01:00
if (keepAspectRatio) {
2018-08-14 01:50:59 +02:00
image = image.scaled(avatarRes, Qt::KeepAspectRatio, Qt::SmoothTransformation);
2020-11-15 13:19:18 +01:00
if (image.width() > image.height()) {
2018-08-14 01:50:59 +02:00
diffHeight = avatarRes.height() - image.height();
diffHeight = diffHeight / 2;
}
2020-11-15 13:19:18 +01:00
else if (image.width() < image.height()) {
2018-08-14 01:50:59 +02:00
diffWidth = avatarRes.width() - image.width();
diffWidth = diffWidth / 2;
}
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
2018-08-14 01:50:59 +02:00
image = image.scaled(avatarRes, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
2018-02-21 12:11:43 +01:00
}
2018-08-14 01:50:59 +02:00
snapmaticPainter.drawImage(avatarZoneX + diffWidth, avatarZoneY + diffHeight, image);
snapmaticPainter.end();
image = snapmaticImage;
2018-02-21 12:11:43 +01:00
}
}
2020-11-15 13:19:18 +01:00
if (picture.setImage(image, eXtendMode)) {
2018-02-21 12:11:43 +01:00
int crew = 0;
2018-02-21 12:48:44 +01:00
double posX = 0;
double posY = 0;
double posZ = 0;
2018-02-21 12:11:43 +01:00
QStringList players;
2020-11-15 13:19:18 +01:00
if (flags.contains("crew")) {
2018-02-21 12:11:43 +01:00
bool crewValid;
int crewId = flags["crew"].toInt(&crewValid);
2020-11-15 13:19:18 +01:00
if (crewValid) {
2018-02-21 12:11:43 +01:00
crew = crewId;
}
}
2020-11-15 13:19:18 +01:00
if (flags.contains("title") && SnapmaticPicture::verifyTitle(flags["title"])) {
2018-02-21 12:11:43 +01:00
picture.setPictureTitle(flags["title"]);
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
avatarMode ? picture.setPictureTitle("Converted Avatar") : picture.setPictureTitle("Converted Picture");
}
2020-11-15 13:19:18 +01:00
if (flags.contains("players")) {
2018-02-21 12:11:43 +01:00
bool flagValid = true;
QString playerFlag = flags["players"];
2020-11-15 13:19:18 +01:00
if (playerFlag.left(1) == "[" && playerFlag.right(1) == "]") {
2018-02-21 12:11:43 +01:00
playerFlag.remove(0, 1);
playerFlag.remove(playerFlag.length() - 1, 1);
}
const QStringList playersList = playerFlag.split(",");
2020-11-15 13:19:18 +01:00
for (QString player : playersList) {
if (player.left(1) == "\"" && player.right(1) == "\"") {
2018-02-21 12:11:43 +01:00
player.remove(0, 1);
player.remove(player.length() - 1, 1);
}
bool playerValid;
player.toInt(&playerValid);
2020-11-15 13:19:18 +01:00
if (!playerValid) {
2018-02-21 12:11:43 +01:00
flagValid = false;
}
}
2020-11-15 13:19:18 +01:00
if (flagValid) {
2018-02-21 12:11:43 +01:00
players = playersList;
}
}
2020-11-15 13:19:18 +01:00
if (flags.contains("position")) {
2018-02-21 12:48:44 +01:00
bool flagValid = true;
2018-02-21 12:50:04 +01:00
QString positionFlag = flags["position"];
2020-11-15 13:19:18 +01:00
if (positionFlag.left(1) == "[" && positionFlag.right(1) == "]") {
2018-02-21 12:48:44 +01:00
positionFlag.remove(0, 1);
positionFlag.remove(positionFlag.length() - 1, 1);
}
const QStringList positionsList = positionFlag.split(",");
2020-11-15 13:19:18 +01:00
for (QString position : positionsList) {
if (position.left(1) == "\"" && position.right(1) == "\"") {
2018-02-21 12:48:44 +01:00
position.remove(0, 1);
position.remove(position.length() - 1, 1);
}
bool positionValid;
position.toDouble(&positionValid);
2020-11-15 13:19:18 +01:00
if (!positionValid) {
2018-02-21 12:48:44 +01:00
flagValid = false;
}
}
2020-11-15 13:19:18 +01:00
if (flagValid) {
if (positionsList.length() >= 1) {
2018-02-21 12:48:44 +01:00
posX = positionsList.at(0).toDouble();
}
2020-11-15 13:19:18 +01:00
if (positionsList.length() >= 2) {
2018-02-21 12:48:44 +01:00
posY = positionsList.at(1).toDouble();
}
2020-11-15 13:19:18 +01:00
if (positionsList.length() >= 3) {
2018-02-21 12:48:44 +01:00
posZ = positionsList.at(2).toDouble();
}
}
}
2018-02-21 12:11:43 +01:00
SnapmaticProperties pictureSP = picture.getSnapmaticProperties();
pictureSP.uid = QString(QTime::currentTime().toString("HHmmss") +
QString::number(QDate::currentDate().dayOfYear())).toInt();
pictureSP.createdDateTime = QDateTime::currentDateTime();
pictureSP.createdTimestamp = pictureSP.createdDateTime.toTime_t();
pictureSP.crewID = crew;
pictureSP.playersList = players;
2018-02-21 12:48:44 +01:00
pictureSP.location.x = posX;
pictureSP.location.y = posY;
pictureSP.location.z = posZ;
2018-02-21 12:11:43 +01:00
picture.setSnapmaticProperties(pictureSP);
picture.setPictureFileName(QString("PGTA5%1").arg(QString::number(pictureSP.uid)));
QString filePath = args.at(2);
filePath.replace("<autodef>", picture.getPictureFileName());
2020-11-15 13:19:18 +01:00
if (!customFormat) {
2018-02-21 12:11:43 +01:00
filePath.replace("<autoext>", "");
2020-11-15 13:19:18 +01:00
if (!picture.exportPicture(filePath, SnapmaticFormat::PGTA_Format)) {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
else {
if (flags.value("output", QString()).toLower() == "exported_filename") {
cout << filePath.toStdString() << endl;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is successful!" << endl;
2018-02-21 12:11:43 +01:00
}
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
filePath.replace("<autoext>", ".g5e");
2020-11-15 13:19:18 +01:00
if (!picture.exportPicture(filePath, SnapmaticFormat::G5E_Format)) {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is failed!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
2020-11-15 13:19:18 +01:00
else {
if (flags.value("output", QString()).toLower() == "exported_filename") {
cout << filePath.toStdString() << endl;
2018-02-21 12:11:43 +01:00
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: Converting of " << args.at(1).toStdString() << " to " << filePath.toStdString() << " is successful!" << endl;
2018-02-21 12:11:43 +01:00
}
}
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
cout << "gta5view-cmd: Editing of Snapmatic Image Stream failed!" << endl;
return 1;
}
}
2020-11-15 13:19:18 +01:00
else {
cout << "gta5view-cmd: " << args.at(1).toStdString() << " is invalid image!" << endl;
2018-02-21 12:11:43 +01:00
return 1;
}
}
2020-11-15 13:19:18 +01:00
else {
2018-02-21 12:11:43 +01:00
cout << "gta5view-cmd: Reading of internal template failed!" << endl;
return 1;
}
}
}
2020-11-15 13:19:18 +01:00
else {
2020-11-15 13:58:10 +01:00
cout << "gta5view Command Line 0.5.1" << endl << endl;
2020-11-15 13:19:18 +01:00
cout << "Usage: " << args.at(0).toStdString() << " source target -format -mode -flag=value" << endl;
if (args.length() >= 2 && (args.at(1) == "--help" || args.at(1) == "-help")) {
2018-02-21 12:11:43 +01:00
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;
cout << "Formats: jpg pgta g5e" << endl;
2018-08-14 01:50:59 +02:00
cout << "Snapmatic Modes: a p d fs aiar akar piar pkar diar dkar ior" << endl;
2020-11-15 13:19:18 +01:00
cout << "Snapmatic Modes: aX pX dX aiarX akarX piarX pkarX diarX dkarX iorX" << endl;
2018-02-21 12:50:04 +01:00
cout << "Snapmatic Flags: crew=int players=int[] position=double[] title=string" << endl;
2018-02-21 12:11:43 +01:00
cout << "Global Flags: output=string" << endl;
}
return 255;
}
return 0;
}