zdoom-macos-deps/patch/pbzx-xar-content.diff
alexey.lysiuk c890469d7f add pbzx xar content patch
primary target of pbzx is xcode .xip files that have an entry named Content instead of Payload
2021-10-07 10:49:57 +03:00

11 lines
422 B
Diff

--- a/pbzx.c
+++ b/pbzx.c
@@ -127,7 +127,7 @@
xar_file_t f = xar_file_first(s->xar, i);
char* path = NULL;
/* Find the Payload file in the archive. */
- while (strncmp((path = xar_get_path(f)), "Payload", 7) &&
+ while (strncmp((path = xar_get_path(f)), "Content", 7) &&
(f = xar_file_next(i))) {
free(path);
}