Skip to content

Commit

Permalink
feat: increase default MaximumRamMb value to 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaBs committed Mar 9, 2024
1 parent 0ce9e39 commit 655c77c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion CmlLib/Core/Launcher/MLaunchOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
4 changes: 2 additions & 2 deletions CmlLibCoreSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 655c77c

Please sign in to comment.