getMinimumSize static method
- PatchFormat format
Gets the minimum size required for a valid patch file of the specified format.
format
is the patch format.
Returns the minimum size in bytes.
Implementation
static int getMinimumSize(PatchFormat format) {
switch (format) {
case PatchFormat.ips:
return 8; // Header (5) + Footer (3)
case PatchFormat.bps:
return 16; // Header (4) + Footer (12)
case PatchFormat.ups:
return 16; // Header (4) + Footer (12)
}
}