all repos — mgba @ 043bb75a6b5eb30e11d3e3fe109e7d69a33a923c

mGBA Game Boy Advance Emulator

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