all repos — mgba @ c9ec91b75fa4cb4f1042e930d14dc43bf680df85

mGBA Game Boy Advance Emulator

src/util/patch.h (view raw)

 1#ifndef PATCH_H
 2#define PATCH_H
 3
 4#include "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