ksud: fix supported kmi
This commit is contained in:
@@ -41,7 +41,8 @@ pub fn copy_assets_to_file(name: &str, dst: impl AsRef<Path>) -> Result<()> {
|
|||||||
pub fn list_supported_kmi() -> Result<Vec<String>> {
|
pub fn list_supported_kmi() -> Result<Vec<String>> {
|
||||||
let mut list = Vec::new();
|
let mut list = Vec::new();
|
||||||
for file in Asset::iter() {
|
for file in Asset::iter() {
|
||||||
if let Some(kmi) = file.strip_suffix(".ko") {
|
// kmi_name = "xxx_kernelsu.ko"
|
||||||
|
if let Some(kmi) = file.strip_suffix("_kernelsu.ko") {
|
||||||
list.push(kmi.to_string());
|
list.push(kmi.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user