You've already forked AstralRinth
forked from didirus/AstralRinth
String settings hooks (#82)
* added theme; env change * began refactoring * added process hook * now singular string for each hook * fixed splitting by comma to by space * profile_create function updated * prettier * added jre validator * restructured so that it doesnt look like a vec * fixed merge issue * snake case * resolved merge issues + added process events * clippy, fmt * removed unnecssary func
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
//! Authentication flow interface
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::{
|
||||
launcher::download,
|
||||
prelude::Profile,
|
||||
@@ -139,3 +141,8 @@ pub async fn validate_globals() -> crate::Result<bool> {
|
||||
let settings = state.settings.read().await;
|
||||
Ok(settings.java_globals.is_all_valid())
|
||||
}
|
||||
|
||||
// Validates JRE at a given at a given path
|
||||
pub async fn check_jre(path: PathBuf) -> crate::Result<Option<JavaVersion>> {
|
||||
Ok(jre::check_java_at_filepath(&path))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user