1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::error::CobbleResult;
use crate::instance::Instance;
use crate::minecraft::install::{install_client, InstallationUpdate};
use crossbeam_channel::Sender;
use std::sync::atomic::AtomicBool;
use std::sync::Arc;
impl Instance {
pub fn install_client(
&self,
update_sender: Sender<InstallationUpdate>,
cancel: Arc<AtomicBool>,
) -> CobbleResult<bool> {
let version_data = self.read_version_data()?;
install_client(
&version_data,
self.dot_minecraft_path(),
update_sender,
cancel,
)
}
}