1
0
Fork 0
mirror of https://gitlab.com/Syping/gta5view-cmd synced 2024-11-21 13:10:23 +01:00

flag is now possible at same place as mode

This commit is contained in:
Syping 2018-02-21 12:18:23 +01:00
parent c17971dda4
commit 1d7186757b

View file

@ -116,6 +116,18 @@ int main(int argc, char *argv[])
convertToGTA = false;
formatSwitch = true;
}
else
{
QStringList currentFlagArg = args.at(4).split("=");
QString currentFlag = currentFlagArg.at(0).toLower();
if (currentFlag.left(1) == "-")
{
currentFlag.remove(0, 1);
currentFlagArg.removeAt(0);
QString currentValue = currentFlagArg.join(QString());
flags[currentFlag] = currentValue;
}
}
}
if (args.length() >= 6)
{