pub struct StockGameManager { /* private fields */ }Expand description
Manages vanilla game snapshots for stock game preservation.
Implementations§
Source§impl StockGameManager
impl StockGameManager
pub fn new(store_dir: PathBuf) -> Self
Sourcepub fn with_db(store_dir: PathBuf, db: ModdeDb) -> Self
pub fn with_db(store_dir: PathBuf, db: ModdeDb) -> Self
Create a manager backed by both filesystem and SQLite.
Sourcepub fn default_dir() -> PathBuf
pub fn default_dir() -> PathBuf
Default store directory: ~/.local/share/modde/stock/.
Sourcepub fn detect_steam_install(&self, game_dir_name: &str) -> Option<PathBuf>
pub fn detect_steam_install(&self, game_dir_name: &str) -> Option<PathBuf>
Detect Steam install path for a given game.
Auto Trait Implementations§
impl !Freeze for StockGameManager
impl !RefUnwindSafe for StockGameManager
impl Send for StockGameManager
impl !Sync for StockGameManager
impl Unpin for StockGameManager
impl UnsafeUnpin for StockGameManager
impl !UnwindSafe for StockGameManager
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