pub struct BootData {
pub version: String,
/* private fields */
}
Expand description
Represents the boot data for FFXIV, which is located under the “boot” directory.
Fields§
§version: String
The current version of the boot data, e.g. “2012.01.01.0000.0000”.
Implementations§
source§impl BootData
impl BootData
sourcepub fn from_existing(directory: &str) -> Option<BootData>
pub fn from_existing(directory: &str) -> Option<BootData>
Reads from an existing boot data location.
This will return None if the boot directory is not valid, but it does not check the validity of each individual file.
§Example
let boot = BootData::from_existing("SquareEnix/Final Fantasy XIV - A Realm Reborn/boot");
sourcepub fn apply_patch(&self, patch_path: &str) -> Result<(), PatchError>
pub fn apply_patch(&self, patch_path: &str) -> Result<(), PatchError>
Applies the patch to boot data and returns any errors it encounters. This function will not update the version in the BootData struct.
Auto Trait Implementations§
impl Freeze for BootData
impl RefUnwindSafe for BootData
impl Send for BootData
impl Sync for BootData
impl Unpin for BootData
impl UnwindSafe for BootData
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