]> git.saurik.com Git - cydget.git/commitdiff
Register cydget:// and cydget-cgi:// as local schemes.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 31 Mar 2011 23:21:46 +0000 (23:21 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 31 Mar 2011 23:21:46 +0000 (23:21 +0000)
LockScreen.mm
makefile

index 56999ca36c636d8f9d1ccb5b816c7c12e1737fd2..3ad5020ab09f40a59015dde3f9f7c9b1834e625d 100644 (file)
@@ -878,7 +878,10 @@ static void $UIWebViewWebViewDelegate$webView$didClearWindowObject$forFrame$(UIW
     apr_initialize();
 
     [NSURLProtocol registerClass:[CydgetURLProtocol class]];
+    [WebView registerURLSchemeAsLocal:@"cydget"];
+
     [NSURLProtocol registerClass:[CydgetCGIURLProtocol class]];
+    [WebView registerURLSchemeAsLocal:@"cydget-cgi"];
 
     if (!iOS4) {
         void (*_ZN3JSC6Parser5parseEPNS_12JSGlobalDataEPiPNS_7UStringE)(JSC::SourceCode **, JSC::JSGlobalData *, int *, JSC::UString *);
index ec89addc27c441744519a72c3cf12d5856783fc4..bbf925b0482450f86172362c718d5bf81c7a0a41 100644 (file)
--- a/makefile
+++ b/makefile
@@ -15,7 +15,7 @@ CydgetSettings: CydgetSettings.mm makefile
        ldid -S $@
 
 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
-       $(target)g++ -F. -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices -framework TelephonyUI -I$(jscore) -iquote$(webcore)/{bindings/js,dom,loader,platform{,/animation,/cf,/network{,/cf},/text},/rendering/style} -iquote$(jscore)/{bytecode,debugger,interpreter,jit,parser,runtime} -lapr-1 -weak_reference_mismatches weak -framework JavaScriptCore -lpcre -DNDEBUG -framework CFNetwork
+       $(target)g++ -F. -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices -framework TelephonyUI -I$(jscore) -iquote$(webcore)/{bindings/js,dom,loader,platform{,/animation,/cf,/network{,/cf},/text},/rendering/style} -iquote$(jscore)/{bytecode,debugger,interpreter,jit,parser,runtime} -lapr-1 -weak_reference_mismatches weak -framework JavaScriptCore -lpcre -DNDEBUG -framework CFNetwork -framework WebKit
        ldid -S $@
 
 extra: