void Ananke::applyBeatPatch(vector &buffer) { string name = {information.path, nall::basename(information.name), ".bps"}; if(!file::exists(name)) return; bpspatch patch; if(patch.modify(name) == false) return; patch.source(buffer.data(), buffer.size()); vector output; output.resize(patch.size()); patch.target(output.data(), output.size()); if(patch.apply() == bpspatch::result::success) { buffer = output; information.manifest = patch.metadata(); } }