blob: 06a5d5b9db44c9531e14f302cde84f92e14413c7 (
plain) (
blame)
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
28
29
30
31
|
mod constants;
mod version;
mod profile;
mod strsub;
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use version::VersionList;
use crate::launcher::profile::{Instance, Profile};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Settings {
profiles: HashMap<String, Profile>,
instances: HashMap<String, Instance>
}
pub struct Launcher {
versions: VersionList,
settings: Settings,
}
impl Launcher {
pub fn new(versions: VersionList, settings: Settings) -> Launcher {
Launcher {
versions,
settings
}
}
}
|