From fd81ca30769aa787b93a0dcb8330a28b1079517e Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Tue, 21 Jan 2025 17:27:57 -0600 Subject: use regular strings for jvm arguments the way serde encoded jvm arguments was funny --- src/launcher/settings.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/launcher/settings.rs') diff --git a/src/launcher/settings.rs b/src/launcher/settings.rs index 29d9220..e65b8b3 100644 --- a/src/launcher/settings.rs +++ b/src/launcher/settings.rs @@ -157,10 +157,10 @@ impl Default for Resolution { pub struct Profile { game_version: ProfileVersion, java_runtime: Option, - instance: String, // ugly that this is a string instead of reference to an Instance but whatever I'm lazy + instance: String, #[serde(default)] - jvm_arguments: Vec, + jvm_arguments: Vec, resolution: Option } @@ -199,7 +199,7 @@ impl Profile { game_version: ProfileVersion::LatestRelease, java_runtime: None, instance: instance_name.into(), - jvm_arguments: DEF_JVM_ARGUMENTS.iter().map(OsString::from).collect(), + jvm_arguments: DEF_JVM_ARGUMENTS.iter().map(|s| String::from(*s)).collect(), resolution: None } } @@ -212,7 +212,7 @@ impl Profile { &self.instance } - pub fn iter_arguments(&self) -> impl Iterator { + pub fn iter_arguments(&self) -> impl Iterator { self.jvm_arguments.iter() } -- cgit v1.2.3-70-g09d2