pub struct Ue4Scanner {
pub game_id: &'static str,
pub project_name: &'static str,
}Expand description
Data-driven scanner for UE4 pak-based mods.
Walks <ProjectName>/Content/Paks/~mods and .../LogicMods, grouping
.pak / .ucas / .utoc triples by file stem. Each stem becomes one
DiscoveredMod with mod_id = "pak/<stem>".
Fields§
§game_id: &'static str§project_name: &'static strTrait Implementations§
Source§impl ModScanner for Ue4Scanner
impl ModScanner for Ue4Scanner
Source§fn scan_directories(&self) -> &[&str]
fn scan_directories(&self) -> &[&str]
Install-relative directories this scanner inspects for mods.
Source§fn scan_filesystem(&self, ctx: &ScanContext<'_>) -> Result<Vec<DiscoveredMod>>
fn scan_filesystem(&self, ctx: &ScanContext<'_>) -> Result<Vec<DiscoveredMod>>
Scan the filesystem for installed mods and return what was discovered.
Source§fn mod_id_footprint(&self, mod_id: &str) -> Option<ModFootprint>
fn mod_id_footprint(&self, mod_id: &str) -> Option<ModFootprint>
Inverse of
ModScanner::scan_filesystem’s mod_id scheme: given
a mod_id this scanner would produce, return the filesystem footprint
that mod owns (directory subtree or single file). Read moreAuto Trait Implementations§
impl Freeze for Ue4Scanner
impl RefUnwindSafe for Ue4Scanner
impl Send for Ue4Scanner
impl Sync for Ue4Scanner
impl Unpin for Ue4Scanner
impl UnsafeUnpin for Ue4Scanner
impl UnwindSafe for Ue4Scanner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more