[C#]Arguments Parser

Results 1 to 2 of 2
  1. #1
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    [C#]Arguments Parser

    Small snippet that parses arguments.

    How to use:

    1. Compile the code below
    2. Copy compiled binaryto folder with game client
    3. Rename game client to something else.
    4. Rename your arguments parser to what used to be client's name.
    5. Run patcher or launcher and see MAGIC!
    6. 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.
    Last edited by jM2.me; 20-02-11 at 02:30 AM.


  2. #2
    It won't fit Supicioso is offline
    MemberRank
    May 2007 Join Date
    LouisianaLocation
    2,385Posts

    Re: [C#]Arguments Parser

    This will SURELY come in handy in the near future. Thanks.



Advertisement