From: Jay Freeman (saurik) Date: Mon, 24 Aug 2009 09:27:32 +0000 (+0000) Subject: Even more new syntax. X-Git-Tag: v0.9.3184~4 X-Git-Url: https://git.saurik.com/fiveicondock.git/commitdiff_plain/d05107456fa9252c2dc6dc47cac3bd5a80b75340 Even more new syntax. --- diff --git a/Tweak.mm b/Tweak.mm index 28e7ebb..15278cd 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -13,8 +13,8 @@ MSHookClass(SBIconModel) MSHookMetaClass(SBIconModel) -MSMessageHook1(float, SBButtonBar, leftMarginForIconRowArray, NSArray *row) { - return [row indexOfObject:[NSNull null]] == NSNotFound ? 4 : MSCall1(SBButtonBar, leftMarginForIconRowArray, row); +MSMessageHook1(float, SBButtonBar, leftMarginForIconRowArray, NSArray *, row) { + return [row indexOfObject:[NSNull null]] == NSNotFound ? 4 : MSOldCall(row); } MSMessageHook0(int, SBButtonBar, maxIconColumns) { @@ -35,7 +35,7 @@ MSMessageHook0(float, SBButtonBar, topIconPadding) { return 313370 + $SBButtonBar$count(self); } -MSMessageHook1(void, SBIcon, setOrigin, CGPoint origin) { +MSMessageHook1(void, SBIcon, setOrigin, CGPoint, origin) { unsigned count(origin.y); if (count < 313370) goto set; @@ -50,11 +50,11 @@ MSMessageHook1(void, SBIcon, setOrigin, CGPoint origin) { origin.y = 11; set: - MSCall1(SBIcon, setOrigin, origin); + MSOldCall(origin); } -MSMessageHook2(CGPoint, SBButtonBar, originForIconAtX,Y, int x, int y) { - CGPoint origin;//(_SBButtonBar$originForIconAtX$Y$(self, _cmd, x, y)); +MSMessageHook2(CGPoint, SBButtonBar, originForIconAtX,Y, int, x, int, y) { + CGPoint origin;//(MSOldCall(x, y, )); //NSLog(@"f:%u,%u=(%f,%f)", x, y, origin.x, origin.y); origin.y = 11;