all repos — mgba @ 55977796f35735f606f301b20f4b09ec621cc0c1

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