• 0

    posted a message on [C# Launcher] Looking for Help

    Good Afternoon,

    I am not sure if this is the right place to put this topic, if this is not please direct me in the direction and either I or you can move it @Admins <3

    I am currently working on a launcher for a custom modpack I plan on keeping private. I have just about everything done including the new Auth System and recognizing whether the players information is correct. I am having troubles figuring out how to "launch" the client though. A long time ago you could launch with the javaw.exe but I am 90% sure this no longer works and there is a new way. I have searched just about everywhere and I am now asking for help on here. Below is a snippet of the code used back then.

                    Process process = new Process();
                    ProcessStartInfo info = new ProcessStartInfo();
                    string dir = @"C:\xxx\.minecraft\bin\";
                    info.FileName = filePath;
                    info.CreateNoWindow = true;
                    info.Arguments = "-cp \"" + dir + "minecraft.jar;" + dir + "lwjgl.jar;" + dir + "lwjgl_util.jar;" + dir + "jinput.jar;\" ";
                    info.Arguments += "\"-Djava.library.path=" + dir + "natives\" -Xmx1024M -Xms512M net.minecraft.client.Minecraft " + username + " " + session;
                    process.StartInfo = info;
    Posted in: Mods Discussion
  • To post a comment, please .