Explorar o código

feat: commit code

YuKun Liu %!s(int64=2) %!d(string=hai) anos
pai
achega
6ad1333a94
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/plugin/mod.rs

+ 3 - 1
src/plugin/mod.rs

@@ -260,7 +260,9 @@ impl PluginManager {
         for p in child_dirs {
             if let Ok(p) = p {
                 if p.path().is_dir() && p.file_name() != "library" {
-                    res.push(p.file_name().to_str().unwrap().to_string());
+                    if p.path().join("init.lua").is_file() {
+                        res.push(p.file_name().to_str().unwrap().to_string());
+                    }
                 }
             }
         }