mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 05:46:45 +08:00
33 lines
1018 B
Rust
33 lines
1018 B
Rust
use bat_adapters::official::launcher::YostarJpInstalledGameBootstrap;
|
|
use std::env;
|
|
use std::path::PathBuf;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
let mut args = env::args().skip(1);
|
|
let root = args
|
|
.next()
|
|
.map(PathBuf::from)
|
|
.ok_or_else(|| anyhow::anyhow!("usage: yostar_jp_client_bootstrap <official-game-root>"))?;
|
|
|
|
let bootstrap =
|
|
YostarJpInstalledGameBootstrap::from_game_root(&root).map_err(anyhow::Error::msg)?;
|
|
|
|
println!("client_root={}", root.display());
|
|
println!("app_version={}", bootstrap.app_version);
|
|
println!("executable_name={}", bootstrap.executable_name);
|
|
println!("executable_params={:?}", bootstrap.executable_params);
|
|
println!(
|
|
"manifest_basis={}",
|
|
bootstrap.basis.as_deref().unwrap_or("<none>")
|
|
);
|
|
println!(
|
|
"manifest_file_count={}",
|
|
bootstrap
|
|
.manifest_file_count
|
|
.map(|count| count.to_string())
|
|
.unwrap_or_else(|| "<none>".to_string())
|
|
);
|
|
|
|
Ok(())
|
|
}
|