From: Jay Freeman (saurik) <saurik@saurik.com> Date: Tue, 21 Jan 2014 11:35:09 +0000 (-0800) Subject: Add ?exit command to help people exit the console. X-Git-Tag: v0.9.500~18 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/6a5fd0d98dd2bf466dacba8ce7c5f66acf75dbfc Add ?exit command to help people exit the console. --- diff --git a/Console.cpp b/Console.cpp index f7c6a0a..fdff81c 100644 --- a/Console.cpp +++ b/Console.cpp @@ -501,6 +501,8 @@ static void Console(CYOptions &options) { CYDestroyContext(); } else if (data == "gc") { CYGarbageCollect(CYGetJSContext()); + } else if (data == "exit") { + return; } else if (data == "expand") { expand = !expand; *out_ << "expand == " << (expand ? "true" : "false") << std::endl;