Log in to view your list of favourite games.
View all games (2,850)
Explore this month's nominated mods
The elegant, powerful, and open-source mod manager
Download and manage all your collections within Vortex
Upgrade your account to unlock all media content
Oh dear! Something has gone wrong!
Try reloading the notifications.
No unread notifications right now
You're up to date
To enjoy the benefits of Nexus Mods, please log in or register a new account
#include "GUICodeGenerator.h"#include <stdio.h>#include "StringVectorList.h"#include "MiscFunctions.h"#include <iostream>#include "..\GlobalCode\VariableList.h"int main(int ConsoleParamNumber, char *CommandArgs []){GUICodeGenerator ProgramGlobal;if(ConsoleParamNumber == 1){//Program entered with no args//Placeholder for GUI}else if(ConsoleParamNumber == 2){//Extracted file Argsstring Command(CommandArgs[1]);//0 = (Default)unsigned int CommandMode = 0;if(CommandMode == 0){//First part of command;Syntax:[ScriptArg01=ScriptArg02]string ScriptArg01;//Command Value;Syntax:[ScriptArg01=ScriptArg02]string ScriptArg02;//CommandScan Stage (limited to value of 255 to save little ram)unsigned short CommandStage = 0;StringVectorList LoadedFile;LoadedFile.LoadFileWithoutComments(Command);//-------------------------------------------------------------------------------------------------string LineString = "";unsigned int LineSize;char LineChar;for(unsigned int LineNumber = 0; LoadedFile.StreamLineData(); LineNumber++){LineString = LoadedFile.CurrentStreamedLineString();LineSize = LineString.length();for(unsigned int i = 0; i < LineSize; i++){LineChar = LineString.at(i);if(LineChar == '<' ){ScriptArg01 = "";CommandStage = 1;}else if(CommandStage > 0 ){if(LineChar == ']' ){CommandStage = 0;//Execute Value set Commands hereif(ScriptArg01 == "CMD" ){}}else if(LineChar == '=' || LineChar == ':' ){CommandStage = 2;}else if(CommandStage == 2){ScriptArg02 += LineChar;}else{ScriptArg01 += LineChar;}}}}}}}
2 comments
#include "GUICodeGenerator.h"
#include <stdio.h>
#include "StringVectorList.h"
#include "MiscFunctions.h"
#include <iostream>
#include "..\GlobalCode\VariableList.h"
int main(int ConsoleParamNumber, char *CommandArgs [])
{
GUICodeGenerator ProgramGlobal;
if(ConsoleParamNumber == 1)
{//Program entered with no args
//Placeholder for GUI
}
else if(ConsoleParamNumber == 2)
{
//Extracted file Args
string Command(CommandArgs[1]);
//0 = (Default)
unsigned int CommandMode = 0;
if(CommandMode == 0)
{
//First part of command;Syntax:[ScriptArg01=ScriptArg02]
string ScriptArg01;
//Command Value;Syntax:[ScriptArg01=ScriptArg02]
string ScriptArg02;
//CommandScan Stage (limited to value of 255 to save little ram)
unsigned short CommandStage = 0;
StringVectorList LoadedFile;
LoadedFile.LoadFileWithoutComments(Command);
//-------------------------------------------------------------------------------------------------
string LineString = "";
unsigned int LineSize;
char LineChar;
for(unsigned int LineNumber = 0; LoadedFile.StreamLineData(); LineNumber++)
{
LineString = LoadedFile.CurrentStreamedLineString();
LineSize = LineString.length();
for(unsigned int i = 0; i < LineSize; i++)
{
LineChar = LineString.at(i);
if(LineChar == '<' )
{
ScriptArg01 = "";
CommandStage = 1;
}
else if(CommandStage > 0 )
{
if(LineChar == ']' )
{
CommandStage = 0;
//Execute Value set Commands here
if(ScriptArg01 == "CMD" )
{
}
}
else if(LineChar == '=' || LineChar == ':' )
{
CommandStage = 2;
}
else if(CommandStage == 2)
{
ScriptArg02 += LineChar;
}
else
{
ScriptArg01 += LineChar;
}
}
}
}
}
}
}