#[non_exhaustive]pub struct LaunchFacts {
pub doorstop_version: u32,
pub preloader: Option<String>,
pub has_corlibs: bool,
pub loader_scripts: Vec<String>,
pub melonloader_assemblies: bool,
pub loaders: Vec<LoaderKind>,
pub recorded: Vec<String>,
}Expand description
What the launch planner needs to know about a target directory’s contents.
launch_plan_from and loader_args_from decide from these instead of
reading the target. With the io feature, LaunchFacts::read gathers them
from disk. A caller that already knows them starts from
LaunchFacts::default, which describes an empty target, and sets the fields
that differ.
§Examples
use thunderstore_engine::profile::launch::{LaunchFacts, LOADER_SCRIPTS};
let mut facts = LaunchFacts::default();
facts.doorstop_version = 4;
facts.loader_scripts = vec![LOADER_SCRIPTS[1].to_string()];
assert_eq!(facts.preloader, None);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.doorstop_version: u32The Doorstop major version recorded in .doorstop_version, or 3 when the
file is missing, unparseable, or below 3. A major of 4 or higher selects
the v4 argument spellings.
preloader: Option<String>The first PRELOADER_CANDIDATES entry present in BepInEx/core, by file
name.
has_corlibs: boolWhether an unstripped_corlib directory exists, which needs a Doorstop
search-path override.
loader_scripts: Vec<String>The LOADER_SCRIPTS present as files in the target root, by name.
melonloader_assemblies: boolWhether MelonLoader’s Assembly-CSharp.dll exists in either its 0.5
(MelonLoader/Managed) or 0.6 (MelonLoader/Il2CppAssemblies) layout. When
neither does, MelonLoader is asked to regenerate its assembly cache.
loaders: Vec<LoaderKind>The loader kinds whose files from LOADER_FILES are in the target.
BepInEx and BepisLoader are found through Self::preloader instead.
recorded: Vec<String>The package names recorded in the target’s mods.yml, which name the
loader pack the engine or r2modman installed.
Implementations§
Trait Implementations§
Source§impl Clone for LaunchFacts
impl Clone for LaunchFacts
Source§impl Debug for LaunchFacts
impl Debug for LaunchFacts
Source§impl Default for LaunchFacts
impl Default for LaunchFacts
impl Eq for LaunchFacts
Source§impl PartialEq for LaunchFacts
impl PartialEq for LaunchFacts
impl StructuralPartialEq for LaunchFacts
Auto Trait Implementations§
impl Forget for LaunchFacts
impl Freeze for LaunchFacts
impl Move for LaunchFacts
impl RefUnwindSafe for LaunchFacts
impl Send for LaunchFacts
impl Sync for LaunchFacts
impl Unpin for LaunchFacts
impl UnsafeUnpin for LaunchFacts
impl UnwindSafe for LaunchFacts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.