You've already forked AstralRinth
forked from didirus/AstralRinth
Performance (#89)
* jre async * mac support * fixed some settings not being saved to file * fixed older version of mac random crashing bug * added specific mac version detection * linux support for jre changes * added app storage options * tauri features change * dependency fix * removed debug statement * restructured to not pass css through rust * changed to os_info * rerun cicd
This commit is contained in:
@@ -26,7 +26,6 @@ impl DirectoryInfo {
|
||||
"Could not find valid config dir".to_string(),
|
||||
))?;
|
||||
|
||||
dbg!(&config_dir);
|
||||
fs::create_dir_all(&config_dir).await.map_err(|err| {
|
||||
crate::ErrorKind::FSError(format!(
|
||||
"Error creating Theseus config directory: {err}"
|
||||
|
||||
@@ -37,11 +37,12 @@ impl JavaGlobals {
|
||||
|
||||
// Validates that every path here is a valid Java version and that the version matches the version stored here
|
||||
// If false, when checked, the user should be prompted to reselect the Java version
|
||||
pub fn is_all_valid(&self) -> bool {
|
||||
pub async fn is_all_valid(&self) -> bool {
|
||||
for (_, java) in self.0.iter() {
|
||||
let jre = jre::check_java_at_filepath(
|
||||
PathBuf::from(&java.path).as_path(),
|
||||
);
|
||||
)
|
||||
.await;
|
||||
if let Some(jre) = jre {
|
||||
if jre.version != java.version {
|
||||
return false;
|
||||
|
||||
@@ -130,7 +130,7 @@ impl State {
|
||||
// On launcher initialization, if global java variables are unset, try to find and set them
|
||||
// (they are required for the game to launch)
|
||||
if settings.java_globals.count() == 0 {
|
||||
settings.java_globals = jre::autodetect_java_globals()?;
|
||||
settings.java_globals = jre::autodetect_java_globals().await?;
|
||||
}
|
||||
|
||||
Ok(Arc::new(Self {
|
||||
|
||||
Reference in New Issue
Block a user