mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-23 20:32:42 +00:00
add pbzx xar content patch
primary target of pbzx is xcode .xip files that have an entry named Content instead of Payload
This commit is contained in:
parent
7c41365058
commit
c890469d7f
1 changed files with 11 additions and 0 deletions
11
patch/pbzx-xar-content.diff
Normal file
11
patch/pbzx-xar-content.diff
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- 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);
|
||||
}
|
Loading…
Reference in a new issue