Small snippet that parses arguments.
How to use:
- Compile the code below
- Copy compiled binaryto folder with game client
- Rename game client to something else.
- Rename your arguments parser to what used to be client's name.
- Run patcher or launcher and see MAGIC!
- Once done open "arguments.txt" and there are your arguments.
Code:
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Arguments
{
class Program
{
static void Main(string[] args)
{
StreamWriter sw = new StreamWriter("arguments.txt");
string arguments = string.Join(" ", args);
sw.Write(arguments);
sw.Close();
}
}
}
No thankies needed. Credits to CSharp guy, got idea from him, andc redits to everyone else who has something to do with it.