feat: expand launcher settings
This commit is contained in:
1 parent
e8d67322b0
commit
53191bc23b
35 files changed
+1540
-266
No files matched your search
@@ -36,12 +36,18 @@ static MODPACK_UPDATE_SLOTS: LazyLock<Arc<tokio::sync::Semaphore>> =
|
||||
LazyLock::new(|| Arc::new(tokio::sync::Semaphore::new(4)));
|
||||
|
||||
pub fn spawn_modpack_update_checks(instances: &[InstanceConfig]) {
|
||||
if !crate::config::SETTINGS.read().general.check_modpack_updates {
|
||||
return;
|
||||
}
|
||||
for instance in instances {
|
||||
spawn_modpack_update_check(instance);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spawn_modpack_update_check(instance: &InstanceConfig) {
|
||||
if !crate::config::SETTINGS.read().general.check_modpack_updates {
|
||||
return;
|
||||
}
|
||||
let Some(source) = instance.modpack_source.clone() else {
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user