#[repr(C)]pub struct PathApi {
pub get_game_dir: RawGetGameDir,
pub get_addon_dir: RawGetAddonDir,
pub get_common_dir: RawGetCommonDir,
}Fields§
§get_game_dir: RawGetGameDirReturns the path to the game directory.
For example "C:\Program Files\Guild Wars 2\".
get_addon_dir: RawGetAddonDirReturns a path to "\addons\{name}".
Passing null or "" returns "\addons" without trailing slash.
get_common_dir: RawGetCommonDirReturns the path to the common addon folder.
Alias for get_addon_dir("common").
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathApi
impl RefUnwindSafe for PathApi
impl Send for PathApi
impl Sync for PathApi
impl Unpin for PathApi
impl UnwindSafe for PathApi
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