diff --git a/CmlLib/Core/Launcher/MLaunchOption.cs b/CmlLib/Core/Launcher/MLaunchOption.cs index 84a252d..a528cc1 100644 --- a/CmlLib/Core/Launcher/MLaunchOption.cs +++ b/CmlLib/Core/Launcher/MLaunchOption.cs @@ -6,13 +6,25 @@ namespace CmlLib.Core { public class MLaunchOption { + public MLaunchOption() + { + if (MRule.Arch == "64") + { + MaximumRamMb = 2048; + } + else + { + MaximumRamMb = 1024; + } + } + public MinecraftPath? Path { get; set; } public MVersion? StartVersion { get; set; } public MSession? Session { get; set; } public string? JavaVersion { get; set; } public string? JavaPath { get; set; } - public int MaximumRamMb { get; set; } = 1024; + public int MaximumRamMb { get; set; } public int MinimumRamMb { get; set; } public string[]? JVMArguments { get; set; } diff --git a/CmlLibCoreSample/Program.cs b/CmlLibCoreSample/Program.cs index 74b37d1..da7ab28 100644 --- a/CmlLibCoreSample/Program.cs +++ b/CmlLibCoreSample/Program.cs @@ -65,9 +65,9 @@ void Start(MSession session) var launchOption = new MLaunchOption { - MaximumRamMb = 1024, Session = session, - + + //MaximumRamMb = 2048, //ScreenWidth = 1600, //ScreenHeight = 900, //ServerIp = "mc.hypixel.net",