diff options
| author | 2025-01-13 20:58:36 -0600 | |
|---|---|---|
| committer | 2025-01-13 20:58:36 -0600 | |
| commit | ff428f36935cefd2b6d8ea6ba4a0572d75d6512d (patch) | |
| tree | cf8b71137247ba74c4a606146d45ec2791725877 /ozone-cli/src | |
| parent | more stuff (diff) | |
library downloads complete
Diffstat (limited to 'ozone-cli/src')
| -rw-r--r-- | ozone-cli/src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs index dbe591a..67932da 100644 --- a/ozone-cli/src/main.rs +++ b/ozone-cli/src/main.rs @@ -2,6 +2,7 @@ use std::env::consts::{ARCH, OS}; use std::error::Error; use std::path::PathBuf; use sysinfo::System; +use o3launcher::launcher::Profile; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { @@ -12,6 +13,12 @@ async fn main() -> Result<(), Box<dyn Error>> { println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>()); let launcher = o3launcher::launcher::Launcher::new(PathBuf::from("./work").as_path(), true).await?; + let profile = Profile { + version_id: "1.21.4".into(), + java_runtime: None, + instance: "".into() + }; + launcher.prepare_launch(&profile).await?; println!("ok"); Ok(()) |
