pub struct ReturnOfModding { /* private fields */ }Expand description
Loader implementation for Return of Modding (ROM), a mod loader for the game Hellsmith.
Routes packages into ReturnOfModding/plugins, ReturnOfModding/plugins_data,
and ReturnOfModding/config (mutable). The loader passes
--rom_modding_root_folder as the launch argument.
§Examples
use loadsmith_loader::{ReturnOfModding, Loader};
let loader = ReturnOfModding::with_default_rules();
assert_eq!(loader.id(), "Shimloader");Implementations§
Source§impl ReturnOfModding
impl ReturnOfModding
Sourcepub fn with_rules(package_install_ruleset: OwnedInstallRuleset) -> Self
pub fn with_rules(package_install_ruleset: OwnedInstallRuleset) -> Self
Creates a ReturnOfModding loader with a custom install ruleset.
Sourcepub fn with_default_rules() -> Self
pub fn with_default_rules() -> Self
Creates a ReturnOfModding loader with the default rules.
Default routes:
ReturnOfModding/plugins— default ruleReturnOfModding/plugins_dataReturnOfModding/config(mutable)
Trait Implementations§
Source§impl Clone for ReturnOfModding
impl Clone for ReturnOfModding
Source§fn clone(&self) -> ReturnOfModding
fn clone(&self) -> ReturnOfModding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnOfModding
impl Debug for ReturnOfModding
Source§impl Loader for ReturnOfModding
impl Loader for ReturnOfModding
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
A unique, human-readable identifier for this loader (e.g.
"BepInEx").Source§fn loader_install_rules(&self) -> InstallRuleset<'_>
fn loader_install_rules(&self) -> InstallRuleset<'_>
Returns the install rules for end-user mod packages.
Source§fn package_install_rules(&self) -> InstallRuleset<'_>
fn package_install_rules(&self) -> InstallRuleset<'_>
Returns the install rules for the loader’s own files (the “loader pack”).
Source§fn generate_launch_args(&self, ctx: &LaunchContext<'_>) -> Result<LaunchArgs>
fn generate_launch_args(&self, ctx: &LaunchContext<'_>) -> Result<LaunchArgs>
Builds the command-line arguments and environment variables needed to
launch the game with this loader.
Source§fn package_config_dirs(&self) -> Vec<PathBuf>
fn package_config_dirs(&self) -> Vec<PathBuf>
Directories that contain mutable per-package configuration.
Source§fn log_file(&self) -> Option<PathBuf>
fn log_file(&self) -> Option<PathBuf>
Path to the loader’s log file, relative to the game directory.
Source§fn prepare_launch(&self, ctx: &LaunchContext<'_>) -> Result<()>
fn prepare_launch(&self, ctx: &LaunchContext<'_>) -> Result<()>
Prepares the game directory by copying files from the profile. Read more
Source§fn package_dir(&self, package: &PackageRef) -> Option<PathBuf>
fn package_dir(&self, package: &PackageRef) -> Option<PathBuf>
Returns the directory where a package’s files are placed, if any.
Auto Trait Implementations§
impl Freeze for ReturnOfModding
impl RefUnwindSafe for ReturnOfModding
impl Send for ReturnOfModding
impl Sync for ReturnOfModding
impl Unpin for ReturnOfModding
impl UnsafeUnpin for ReturnOfModding
impl UnwindSafe for ReturnOfModding
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