pub struct PathAssemblyResolver {
pub search_paths: Vec<PathBuf>,
pub ignore_missing: bool,
/* private fields */
}Expand description
Resolves assemblies from a list of directories, by default the module’s own
directory followed by the newest installed Microsoft.NETCore.App framework.
Fields§
§search_paths: Vec<PathBuf>§ignore_missing: boolSkip assemblies that can’t be found instead of returning an error.
Implementations§
Source§impl PathAssemblyResolver
impl PathAssemblyResolver
pub fn new(base_path: &Path) -> Self
pub fn with_search_paths(search_paths: Vec<PathBuf>) -> Self
Sourcepub fn for_game(game_dir: &Path) -> Self
pub fn for_game(game_dir: &Path) -> Self
Resolver for a Unity game: the game’s Managed folder, its bundled Mono
class libraries, then the system Mono and .NET installs.
Sourcepub fn find_game_managed_dirs(game_dir: &Path) -> Vec<PathBuf>
pub fn find_game_managed_dirs(game_dir: &Path) -> Vec<PathBuf>
<Game>_Data/Managed (Windows, Linux) or Contents/Resources/Data/Managed (macOS).
Sourcepub fn find_mono_dir() -> Option<PathBuf>
pub fn find_mono_dir() -> Option<PathBuf>
The system Mono 4.5 class library directory.
Sourcepub fn find_framework_dir() -> Option<PathBuf>
pub fn find_framework_dir() -> Option<PathBuf>
The newest shared/Microsoft.NETCore.App/<version> directory.
Trait Implementations§
Source§impl Debug for PathAssemblyResolver
impl Debug for PathAssemblyResolver
Auto Trait Implementations§
impl !RefUnwindSafe for PathAssemblyResolver
impl !Send for PathAssemblyResolver
impl !Sync for PathAssemblyResolver
impl !UnwindSafe for PathAssemblyResolver
impl Freeze for PathAssemblyResolver
impl Unpin for PathAssemblyResolver
impl UnsafeUnpin for PathAssemblyResolver
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