1
Fork 0
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:
Joshua Goins 2022-08-09 21:53:20 -04:00
parent 8c3f848918
commit e172433b00

View file

@ -1,7 +1,7 @@
use std::fs;
use std::path::PathBuf;
use crate::gamedata::MemoryBuffer;
use crate::patch::apply_patch;
use crate::patch::{apply_patch, PatchError};
/// Boot data for FFXIV.
pub struct BootData {
@ -46,7 +46,7 @@ impl BootData {
}
}
pub fn apply_patch(&self, patch_path : &str) {
apply_patch(&self.path, patch_path);
pub fn apply_patch(&self, patch_path : &str) -> Result<(), PatchError> {
apply_patch(&self.path, patch_path)
}
}