From d2742118d583fb2438e68bc85ca6639e239e8a6b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 7 Nov 2009 22:50:03 +0000 Subject: [PATCH] Added a global with around script file execution, so as to not break the world (yet). --- Console.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- 2.49.0