mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-22 12:47:45 +00:00
Propagate patch errors for BootData too
This commit is contained in:
parent
8c3f848918
commit
e172433b00
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use crate::gamedata::MemoryBuffer;
|
use crate::gamedata::MemoryBuffer;
|
||||||
use crate::patch::apply_patch;
|
use crate::patch::{apply_patch, PatchError};
|
||||||
|
|
||||||
/// Boot data for FFXIV.
|
/// Boot data for FFXIV.
|
||||||
pub struct BootData {
|
pub struct BootData {
|
||||||
|
@ -46,7 +46,7 @@ impl BootData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn apply_patch(&self, patch_path : &str) {
|
pub fn apply_patch(&self, patch_path : &str) -> Result<(), PatchError> {
|
||||||
apply_patch(&self.path, patch_path);
|
apply_patch(&self.path, patch_path)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue