all repos — mgba @ 16cf38998672f6b4b9c0c8aae2dcdd75b9af9725

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