1
0

added settings API + fixed bug (#62)

* added settings API + fixed bug

* removed redundant API funcs

* comment clarifications

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
This commit is contained in:
Wyatt Verchere
2023-04-03 13:46:04 -07:00
committed by GitHub
parent 6a05276a21
commit a13b7a2566
12 changed files with 140 additions and 22 deletions

View File

@@ -53,6 +53,7 @@ pub async fn launch_minecraft(
instance_path: &Path,
java_install: &Path,
java_args: &[String],
env_args: &[(String, String)],
wrapper: &Option<String>,
memory: &st::MemorySettings,
resolution: &st::WindowSize,
@@ -173,6 +174,8 @@ pub async fn launch_minecraft(
None => Command::new(String::from(java_install.to_string_lossy())),
};
let env_args = Vec::from(env_args);
command
.args(
args::get_jvm_arguments(
@@ -213,6 +216,7 @@ pub async fn launch_minecraft(
)
.current_dir(instance_path.clone())
.env_clear()
.envs(env_args)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit());