mindstorm38 / portablemc

A fast, reliable and cross-platform command-line Minecraft launcher and API for developers. Including fast and easy installation of common mod loaders such as Fabric, Forge, NeoForge and Quilt.
https://pypi.org/project/portablemc/
GNU General Public License v3.0
372 stars 20 forks source link

Using jvm_args without changing executable? #230

Open MonkaKokosowa opened 3 months ago

MonkaKokosowa commented 3 months ago

Would it be possible to use env.jvm_args with custom JVM args such as -Xmx3G without needing to set a JVM executable path in the first argument? I need to change ram allocation, but would rather avoid writing unnecessary JVM handling code when portablemc already has it.

mindstorm38 commented 3 months ago

The JVM exec path is always the first in jvm_args, so you just have to ignore it and modify subsequent arguments. What is your code leading to the creation of env?