1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-25 13:57:45 +00:00

Make apply_patch public

This commit is contained in:
Joshua Goins 2022-10-13 15:43:51 -04:00
parent 952b06cd76
commit d87694df4d

View file

@ -390,7 +390,7 @@ impl From<binrw::Error> for PatchError {
}
/// Applies a boot or a game patch to the specified _data_dir_.
pub(crate) fn apply_patch(data_dir: &str, patch_path: &str) -> Result<(), PatchError> {
pub fn apply_patch(data_dir: &str, patch_path: &str) -> Result<(), PatchError> {
let mut file = File::open(patch_path)?;
PatchHeader::read(&mut file)?;