pub struct GamePaths {
pub project_path: PathBuf,
pub runtime_path: PathBuf,
pub package_definition_path: PathBuf,
}Fields§
§project_path: PathBuf§runtime_path: PathBuf§package_definition_path: PathBufImplementations§
Source§impl GamePaths
impl GamePaths
Sourcepub fn from_retail_directory(
retail_directory: PathBuf,
) -> Result<Self, GameDiscoveryError>
pub fn from_retail_directory( retail_directory: PathBuf, ) -> Result<Self, GameDiscoveryError>
Tries to discover the game’s paths given its retail directory.
§Arguments
retail_directory- The path to the game’s retail directory.
Auto Trait Implementations§
impl Freeze for GamePaths
impl RefUnwindSafe for GamePaths
impl Send for GamePaths
impl Sync for GamePaths
impl Unpin for GamePaths
impl UnwindSafe for GamePaths
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> 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