From: Jay Freeman (saurik) Date: Sun, 3 Jan 2016 20:48:46 +0000 (-0800) Subject: Find code library, even when relative in debugger. X-Git-Tag: v0.9.590~75 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/5154ab8dbb5374da04cd9f8e2004279700a40881?ds=sidebyside Find code library, even when relative in debugger. --- diff --git a/Execute.cpp b/Execute.cpp index 36c400a..e11542a 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -2127,8 +2127,11 @@ const char *CYPoolLibraryPath(CYPool &pool) { *slash = '\0'; slash = strrchr(lib, '/'); - if (slash != NULL && strcmp(slash, "/.libs") == 0) - *slash = '\0'; + if (slash != NULL) { + if (strcmp(slash, "/.libs") == 0) + *slash = '\0'; + } else if (strcmp(lib, ".libs") == 0) + return "."; return lib; }