src/util/patch.h (view raw)
1#ifndef PATCH_H
2#define PATCH_H
3
4#include "util/common.h"
5
6struct VFile;
7
8struct Patch {
9 struct VFile* vf;
10
11 size_t (*outputSize)(struct Patch* patch, size_t inSize);
12 bool (*applyPatch)(struct Patch* patch, void* out, size_t outSize);
13};
14
15bool loadPatch(struct VFile* vf, struct Patch* patch);
16
17#endif