mirror of
https://gitlab.com/Syping/gta5view-cmd
synced 2024-12-22 03:45:30 +01:00
flag is now possible at same place as mode
This commit is contained in:
parent
c17971dda4
commit
1d7186757b
1 changed files with 12 additions and 0 deletions
12
main.cpp
12
main.cpp
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue