projects
/
cycript.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a global with around script file execution, so as to not break the world (yet).
[cycript.git]
/
Console.cpp
diff --git
a/Console.cpp
b/Console.cpp
index 719e6f0fb24c8bc01ebeddec85cde0c848bdaf4c..fc745407a591bbc51d883736b51e2bfecbc6d06a 100644
(file)
--- 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);
+ }
}
}