From: Jay Freeman (saurik) Date: Sun, 8 Jul 2012 19:39:40 +0000 (-0700) Subject: Support ?expand when used with Objective-C strings. X-Git-Tag: v0.9.458^0 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/0881deb5306e45b62eb0b2d244bc5d6d73b8c0a4?ds=sidebyside Support ?expand when used with Objective-C strings. --- diff --git a/Console.cpp b/Console.cpp index d41f6ef..80c9dbd 100644 --- a/Console.cpp +++ b/Console.cpp @@ -161,7 +161,10 @@ static void Output(CYUTF8String json, FILE *fout, bool expand = false) { if (data == NULL || fout == NULL) return; - if (!expand || data[0] != '"' && data[0] != '\'') + if (!expand || + data[0] != '@' && data[0] != '"' && data[0] != '\'' || + data[0] == '@' && data[1] != '"' && data[1] != '\'' + ) fputs(data, fout); else for (size_t i(0); i != size; ++i) if (data[i] != '\\')