mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-26 12:34:17 +01:00
IPS patch correction
This commit is contained in:
parent
6864390b7f
commit
1d17d3f185
@ -171,8 +171,12 @@ bool patchApplyIPS(MFILE * f, u8 **r, int *s) {
|
|||||||
b = -1;
|
b = -1;
|
||||||
// check if we need to reallocate our ROM
|
// check if we need to reallocate our ROM
|
||||||
if ((offset + len) >= size) {
|
if ((offset + len) >= size) {
|
||||||
|
#ifdef NGC
|
||||||
|
size = offset + len;
|
||||||
|
#else
|
||||||
size *= 2;
|
size *= 2;
|
||||||
rom = (u8 *) realloc(rom, size);
|
rom = (u8 *) realloc(rom, size);
|
||||||
|
#endif
|
||||||
*r = rom;
|
*r = rom;
|
||||||
*s = size;
|
*s = size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user