15 lines
455 B
Rust
15 lines
455 B
Rust
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use std::path::Path;
|
|
|
|
use super::entry::ContentEntry;
|
|
|
|
pub fn scan_one_shader(path: &Path, file_stem: &str, enabled: bool) -> ContentEntry {
|
|
super::packs::scan_one_pack(path, file_stem, enabled)
|
|
}
|
|
|
|
pub fn scan_shaders(instances_dir: &Path, instance_name: &str) -> Vec<ContentEntry> {
|
|
super::packs::scan_packs(instances_dir, instance_name, "shaderpacks")
|
|
}
|