rename to managedFeatures

This commit is contained in:
Ylarod
2025-11-03 21:32:11 +08:00
committed by ShirkNeko
parent 46fefc299c
commit 1cc9fce2c6
2 changed files with 4 additions and 4 deletions

View File

@@ -250,7 +250,7 @@ api_level_arch_detect() {
check_managed_features() {
local PROP_FILE=$1
local MANAGED_FEATURES=$(grep_prop ksu_managed_features "$PROP_FILE")
local MANAGED_FEATURES=$(grep_prop managedFeatures "$PROP_FILE")
[ -z "$MANAGED_FEATURES" ] && return 0

View File

@@ -515,8 +515,8 @@ pub fn list_modules() -> Result<()> {
}
/// Get all managed features from active modules
/// Modules can specify ksu_managed_features in their module.prop
/// Format: ksu_managed_features=feature1,feature2,feature3
/// Modules can specify managedFeatures in their module.prop
/// Format: managedFeatures=feature1,feature2,feature3
/// Returns: HashMap<ModuleId, Vec<ManagedFeature>>
pub fn get_managed_features() -> Result<HashMap<String, Vec<String>>> {
let mut managed_features_map: HashMap<String, Vec<String>> = HashMap::new();
@@ -534,7 +534,7 @@ pub fn get_managed_features() -> Result<HashMap<String, Vec<String>>> {
}
};
if let Some(features_str) = prop_map.get("ksu_managed_features") {
if let Some(features_str) = prop_map.get("managedFeatures") {
let module_id = prop_map
.get("id")
.map(|s| s.to_string())