all repos — mgba @ a58f8f8675209df00bd06aada55fb14a270a1e6b

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 Patch {
 7	int patchfd;
 8
 9	size_t (*outputSize)(struct Patch* patch, size_t inSize);
10	int (*applyPatch)(struct Patch* patch, void* out, size_t outSize);
11};
12
13int loadPatch(int patchfd, struct Patch* patch);
14
15#endif