Skip to content

Commit

Permalink
Correct JVM Regex string;
Browse files Browse the repository at this point in the history
  • Loading branch information
Renegade-Master committed Feb 26, 2024
1 parent 80c87ba commit df9927f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func applyJvmConfigChanges() {
jvmConfigFile := baseGameDir + "ProjectZomboid64.json"

jvmConfig := map[*regexp.Regexp]string{
regexp.MustCompile("-Xmx.*"): "-Xmx" + os.Getenv("MAX_RAM"),
regexp.MustCompile("-XX:+Use.*"): "-XX:+Use" + os.Getenv("GC_CONFIG"),
regexp.MustCompile(`-Xmx.*`): "-Xmx" + os.Getenv("MAX_RAM"),
regexp.MustCompile(`-XX:\+Use.*`): "-XX:+Use" + os.Getenv("GC_CONFIG"),
}

// Open the JSON Configuration file for editing
Expand Down

0 comments on commit df9927f

Please sign in to comment.