refactor: merge theme into config, remove dead code
This commit is contained in:
1 parent
cc97c174c1
commit
6ff8ae64d5
10 files changed
+128
-208
No files matched your search
@@ -151,7 +151,7 @@ impl ModLoaderInstaller for ForgeInstaller {
|
||||
}
|
||||
}
|
||||
|
||||
let java_path = forge::detect_java_path();
|
||||
let java_path = crate::net::detect_java_path();
|
||||
match forge::run_forge_installer(&installer_jar, instance_dir, &java_path).await {
|
||||
Ok(()) => {}
|
||||
Err(e) => {
|
||||
@@ -262,7 +262,7 @@ impl ModLoaderInstaller for NeoForgeInstaller {
|
||||
}
|
||||
}
|
||||
|
||||
let java_path = neoforge::detect_java_path();
|
||||
let java_path = crate::net::detect_java_path();
|
||||
match neoforge::run_neoforge_installer(&installer_jar, instance_dir, &java_path).await {
|
||||
Ok(()) => {}
|
||||
Err(e) => {
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ pub mod models;
|
||||
|
||||
pub use manager::{InstanceError, InstanceManager};
|
||||
pub use loader::{get_installer, ModLoaderInstaller, VanillaInstaller};
|
||||
pub use models::{InstanceConfig, InstanceState, ModLoader};
|
||||
pub use models::{InstanceConfig, ModLoader};
|
||||
@@ -39,15 +39,6 @@ pub struct InstanceConfig {
|
||||
pub resolution: Option<(u32, u32)>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum InstanceState {
|
||||
Ready,
|
||||
Downloading,
|
||||
Running,
|
||||
Error(String),
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in new issue
Block a user