From: Jay Freeman (saurik) Date: Sat, 7 Nov 2009 22:50:03 +0000 (+0000) Subject: Added a global with around script file execution, so as to not break the world (yet). X-Git-Tag: v0.9.432~178 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/d2742118d583fb2438e68bc85ca6639e239e8a6b?ds=inline Added a global with around script file execution, so as to not break the world (yet). --- diff --git a/Console.cpp b/Console.cpp index 719e6f0..fc74540 100644 --- a/Console.cpp +++ b/Console.cpp @@ -608,8 +608,10 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { std::string code(str.str()); if (compile) std::cout << code; - else + else { + code = "with(Cycript.all){" + code + "}"; Run(client, code, stdout); + } } }