all repos — mgba @ a3fff6d1a5a93bd7eb36f174d498ccf1770cb26e

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