pub struct GenericGame { /* private fields */ }Expand description
A generic game with loose file drop support.
Implementations§
Trait Implementations§
Source§impl GamePlugin for GenericGame
impl GamePlugin for GenericGame
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable display name.
Source§fn detect_install(&self) -> Option<PathBuf>
fn detect_install(&self) -> Option<PathBuf>
Attempt to detect the game’s install location.
Default: delegates to
detection::find_game_install(self.game_id()).Source§fn mod_directory(&self, install: &Path) -> PathBuf
fn mod_directory(&self, install: &Path) -> PathBuf
Return the mod directory relative to the install path.
Source§fn deploy(&self, staging: &Path, target: &Path) -> Result<()>
fn deploy(&self, staging: &Path, target: &Path) -> Result<()>
Deploy staged mods into the game’s mod directory.
Default: recursive symlink farm via
modde_core::fs::deploy_symlinks.Source§fn post_deploy(&self, _install: &Path) -> Result<()>
fn post_deploy(&self, _install: &Path) -> Result<()>
Run any post-deployment steps (e.g. REDmod deploy).
Source§fn save_directory(&self) -> Option<PathBuf>
fn save_directory(&self) -> Option<PathBuf>
Return the save directory for this game, if known.
Source§fn classify_mod(&self, _mod_dir: &Path) -> ModSafety
fn classify_mod(&self, _mod_dir: &Path) -> ModSafety
Classify whether a mod is save-breaking based on its installed content. Read more
Source§fn wine_dll_overrides(&self, _game_dir: &Path) -> SmallVec<[String; 4]>
fn wine_dll_overrides(&self, _game_dir: &Path) -> SmallVec<[String; 4]>
Scan the game directory for proxy/hook DLLs that need Wine
n,b overrides. Read moreSource§fn wine_dll_overrides_from_staging(
&self,
_staging: &Path,
) -> SmallVec<[String; 4]>
fn wine_dll_overrides_from_staging( &self, _staging: &Path, ) -> SmallVec<[String; 4]>
Scan the staging directory for proxy DLLs that mods deploy.
This catches DLLs that may have been deleted by other tools (e.g. fgmod)
from the game directory but are still needed.
Source§fn executable_dir(&self, install: &Path) -> PathBuf
fn executable_dir(&self, install: &Path) -> PathBuf
Return the directory containing the game executable, relative to the install root.
Used to locate proxy DLLs that need Wine overrides.
fn ini_file_names(&self) -> &[&str]
fn archive_extensions(&self) -> &[&str]
fn has_plugin_system(&self) -> bool
fn steam_app_id_u32(&self) -> Option<u32>
fn plugins_txt_folder(&self) -> Option<&str>
fn nexus_game_domain(&self) -> Option<&str>
Source§fn nexus_game_id_u32(&self) -> Option<u32>
fn nexus_game_id_u32(&self) -> Option<u32>
Numeric Nexus game ID. Required by the GraphQL v2 API for
browse/search queries (which take
gameId: Int, not a domain
string). Games that only speak REST can leave this None.Source§fn analyze_mod_archive(&self, _extracted_dir: &Path) -> Option<InstallMethod>
fn analyze_mod_archive(&self, _extracted_dir: &Path) -> Option<InstallMethod>
Claim an extracted archive as a game-specific install method. Read more
Source§fn recognizes_bare_layout(&self, _extracted_dir: &Path) -> bool
fn recognizes_bare_layout(&self, _extracted_dir: &Path) -> bool
Decide whether an extracted archive drops cleanly into the game’s
mod dir without any staging (e.g. a Skyrim archive with a
top-level
Data/ directory, or a Cyberpunk archive with r6/). Read moreSource§fn classify_extension(&self, ext: &str) -> ContentCategory
fn classify_extension(&self, ext: &str) -> ContentCategory
Classify a file extension into a content category.
Source§fn summarize_content(&self, mod_dir: &Path) -> ContentSummary
fn summarize_content(&self, mod_dir: &Path) -> ContentSummary
Scan a mod directory and return a content summary.
Auto Trait Implementations§
impl Freeze for GenericGame
impl RefUnwindSafe for GenericGame
impl Send for GenericGame
impl Sync for GenericGame
impl Unpin for GenericGame
impl UnsafeUnpin for GenericGame
impl UnwindSafe for GenericGame
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more