src/util/patch.c (view raw)
1#include "util/patch.h"
2
3#include "util/patch-ips.h"
4#include "util/patch-ups.h"
5
6int loadPatch(int patchfd, struct Patch* patch) {
7 patch->patchfd = patchfd;
8
9 if (loadPatchIPS(patch)) {
10 return 1;
11 }
12
13 if (loadPatchUPS(patch)) {
14 return 1;
15 }
16
17 patch->outputSize = 0;
18 patch->applyPatch = 0;
19 return 0;
20}