X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/bf998c10baabbd95f2d59d29f9edea0eb107b156..88085bb43c2b0053fbb8d6b62b00af71c4b323cf:/libcycript.cy diff --git a/libcycript.cy b/libcycript.cy index 9853364..7c279cb 100644 --- a/libcycript.cy +++ b/libcycript.cy @@ -101,7 +101,13 @@ let GetLibraryPath = function() { if (slash == -1) return null; - return path.substr(0, slash); + path = path.substr(0, slash); + + GetLibraryPath = function() { + return path; + }; + + return GetLibraryPath(); } finally { dlclose(handle); }