]> git.saurik.com Git - cycript.git/blobdiff - libcycript.cy
Do not allow JavaMethod calls on non-Java objects.
[cycript.git] / libcycript.cy
index 6f5ac20978cbe91bbd4a5c058b895e985854973f..6f798ea1528681c19e64b70ad866cf67d1f8000f 100644 (file)
@@ -397,6 +397,11 @@ for (let i = 0; environ[i] != null; ++i) {
     process.env[name.toString()] = value;
 }
 
+process.cwd = function() {
+    let cwd = new (typedef char[1024]);
+    return getcwd(cwd, cwd.length).toString();
+};
+
 process.pid = getpid();
 
 })();