[PKG2] Add external kip1 patches support via .ini

The format is described in patches.ini.
For now it only supports the kips defined in hekate's code.

Next versions will add support for defining other kips.
This commit is contained in:
ctcaer@gmail.com
2019-06-30 03:45:18 +03:00
parent f3dcfab095
commit ba0f29bc5c
5 changed files with 445 additions and 117 deletions

View File

@@ -122,13 +122,13 @@ typedef struct _kip1_patch_t
{
u32 offset; // section+offset of patch to apply.
u32 length; // In bytes, 0 means last patch.
const char* srcData; // That must match.
const char* dstData; // That it gets replaced by.
char* srcData; // That must match.
char* dstData; // That it gets replaced by.
} kip1_patch_t;
typedef struct _kip1_patchset_t
{
const char* name; // NULL means end.
char* name; // NULL means end.
kip1_patch_t* patches; // NULL means not necessary.
} kip1_patchset_t;