浏览代码

fixed what i broke

master
Burrit0z 4 年前
父节点
当前提交
90dfd9cece
共有 74 个文件被更改,包括 234 次插入27 次删除
  1. 二进制
      .DS_Store
  2. +1
    -1
      .theos/_/DEBIAN/control
  3. 二进制
      .theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib
  4. +0
    -0
      .theos/_/Library/MobileSubstrate/DynamicLibraries/testing.plist
  5. +0
    -0
      .theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist
  6. +0
    -0
      .theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist
  7. +0
    -0
      .theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png
  8. +0
    -0
      .theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist
  9. +0
    -0
      .theos/build_session
  10. +1
    -1
      .theos/last_package
  11. +0
    -0
      .theos/obj/debug/.stamp
  12. +0
    -0
      .theos/obj/debug/arm64/Tweak.x.b761c000.Td
  13. +0
    -0
      .theos/obj/debug/arm64/Tweak.x.b761c000.o
  14. +0
    -0
      .theos/obj/debug/arm64/Tweak.x.cce53864.Td
  15. 二进制
      .theos/obj/debug/arm64/Tweak.x.cce53864.o
  16. +104
    -0
      .theos/obj/debug/arm64/Tweak.x.m
  17. +0
    -0
      .theos/obj/debug/arm64/burRootListController.m.320cd592.Td
  18. +0
    -0
      .theos/obj/debug/arm64/burRootListController.m.320cd592.o
  19. +0
    -0
      .theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist
  20. +0
    -0
      .theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs
  21. 二进制
      .theos/obj/debug/arm64/testing.dylib
  22. +0
    -0
      .theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Info.plist
  23. 二进制
      .theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib
  24. +0
    -0
      .theos/obj/debug/arm64e/Tweak.x.1ad82ea2.Td
  25. 二进制
      .theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o
  26. +0
    -0
      .theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td
  27. +0
    -0
      .theos/obj/debug/arm64e/Tweak.x.6e9da55c.o
  28. +0
    -0
      .theos/obj/debug/arm64e/Tweak.x.f8e2c40f.Td
  29. +0
    -0
      .theos/obj/debug/arm64e/Tweak.x.f8e2c40f.o
  30. +13
    -8
      .theos/obj/debug/arm64e/Tweak.x.m
  31. +0
    -0
      .theos/obj/debug/arm64e/burRootListController.m.1022476f.Td
  32. +0
    -0
      .theos/obj/debug/arm64e/burRootListController.m.1022476f.o
  33. +0
    -0
      .theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist
  34. +0
    -0
      .theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs
  35. 二进制
      .theos/obj/debug/arm64e/testing.dylib
  36. +0
    -0
      .theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Info.plist
  37. 二进制
      .theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib
  38. +0
    -0
      .theos/obj/debug/armv7/burRootListController.m.40484a5d.Td
  39. +0
    -0
      .theos/obj/debug/armv7/burRootListController.m.40484a5d.o
  40. +0
    -0
      .theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist
  41. +0
    -0
      .theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs
  42. +0
    -0
      .theos/obj/debug/armv7s/Tweak.x.8f98122a.Td
  43. 二进制
      .theos/obj/debug/armv7s/Tweak.x.8f98122a.o
  44. +104
    -0
      .theos/obj/debug/armv7s/Tweak.x.m
  45. 二进制
      .theos/obj/debug/armv7s/testing.dylib
  46. +0
    -0
      .theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Info.plist
  47. 二进制
      .theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib
  48. +0
    -0
      .theos/obj/debug/dockifyprefs.bundle/Info.plist
  49. +0
    -0
      .theos/obj/debug/dockifyprefs.bundle/Root.plist
  50. +0
    -0
      .theos/obj/debug/dockifyprefs.bundle/icon.png
  51. 二进制
      .theos/obj/debug/testing.dylib
  52. +0
    -0
      .theos/obj/iphone_simulator/debug/.stamp
  53. +0
    -0
      .theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.Td
  54. +0
    -0
      .theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.o
  55. +0
    -0
      .theos/obj/iphone_simulator/debug/x86_64/Tweak.x.m
  56. +1
    -1
      .theos/packages/com.burritoz.testing-1.2
  57. +1
    -3
      Makefile
  58. +0
    -0
      README.md
  59. +9
    -13
      Tweak.x
  60. +0
    -0
      control
  61. +0
    -0
      dockifyprefs/.DS_Store
  62. +0
    -0
      dockifyprefs/Makefile
  63. +0
    -0
      dockifyprefs/Resources/Info.plist
  64. +0
    -0
      dockifyprefs/Resources/Root.plist
  65. +0
    -0
      dockifyprefs/Resources/icon.png
  66. +0
    -0
      dockifyprefs/burRootListController.h
  67. +0
    -0
      dockifyprefs/burRootListController.m
  68. +0
    -0
      dockifyprefs/entry.plist
  69. +0
    -0
      packages/.DS_Store
  70. +0
    -0
      packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb
  71. +0
    -0
      packages/com.burritoz.testing_1.1_iphoneos-arm.deb
  72. 二进制
      packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb
  73. +0
    -0
      packages/com.burritoz.testing_1.2_iphoneos-arm.deb
  74. +0
    -0
      testing.plist

二进制
.DS_Store 查看文件


+ 1
- 1
.theos/_/DEBIAN/control 查看文件

@@ -6,5 +6,5 @@ Description: A very noice tweak to configure the dock a bit more...
Maintainer: burrit0z
Author: burrit0z
Section: Tweaks
Version: 1.2-5+debug
Version: 1.2-7+debug
Installed-Size: 412

二进制
.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib 查看文件


+ 0
- 0
.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.plist 查看文件


+ 0
- 0
.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist 查看文件


+ 0
- 0
.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist 查看文件


+ 0
- 0
.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png 查看文件

之前 之后
宽度: 29  |  高度: 29  |  大小: 418B 宽度: 29  |  高度: 29  |  大小: 418B

+ 0
- 0
.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist 查看文件


+ 0
- 0
.theos/build_session 查看文件


+ 1
- 1
.theos/last_package 查看文件

@@ -1 +1 @@
./packages/com.burritoz.testing_1.2-5+debug_iphoneos-arm.deb
./packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb

+ 0
- 0
.theos/obj/debug/.stamp 查看文件


+ 0
- 0
.theos/obj/debug/arm64/Tweak.x.b761c000.Td 查看文件


+ 0
- 0
.theos/obj/debug/arm64/Tweak.x.b761c000.o 查看文件


+ 0
- 0
.theos/obj/debug/arm64/Tweak.x.cce53864.Td 查看文件


二进制
.theos/obj/debug/arm64/Tweak.x.cce53864.o 查看文件


+ 104
- 0
.theos/obj/debug/arm64/Tweak.x.m 查看文件

@@ -0,0 +1,104 @@
#line 1 "Tweak.x"

#import <SpringBoard/SBDockIconListView.h>
#import <SpringBoard/SBDockView.h>
#import <SpringBoard/SBIconListView.h>
#import <SpringBoard/SpringBoard.h>
#import <Cephei/HBPreferences.h>


static BOOL transparent;
static BOOL hidden;
static double setHeight;
static double customOpacity;
static NSInteger setIconNumber;

HBPreferences *preferences;



#include <substrate.h>
#if defined(__clang__)
#if __has_feature(objc_arc)
#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
#define _LOGOS_SELF_CONST const
#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif

@class SBDockView; @class SBDockIconListView;
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL);

#line 18 "Tweak.x"



static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
if (transparent == NO && hidden == NO) {
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity);
}else if (transparent || hidden) {
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0);
} else {
NSLog(@"Dock not Transparent/hidden, no custom opacity\n");
}
}


static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight);
}

static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
return (_logos_meta_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight);
}





static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}

static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}



static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) {
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"];
[preferences registerDefaults:@{
@"setHeight": @1,
@"customOpacity": @1,
@"hidden": @NO,
@"setIconNumber": @4,
}];
[preferences registerBool:&transparent default:YES forKey:@"transparent"];
[preferences registerBool:&hidden default:NO forKey:@"hidden"];
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"];
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"];
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"];
}
static __attribute__((constructor)) void _logosLocalInit() {
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} }
#line 76 "Tweak.x"

+ 0
- 0
.theos/obj/debug/arm64/burRootListController.m.320cd592.Td 查看文件


+ 0
- 0
.theos/obj/debug/arm64/burRootListController.m.320cd592.o 查看文件


+ 0
- 0
.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist 查看文件


+ 0
- 0
.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs 查看文件


二进制
.theos/obj/debug/arm64/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Info.plist 查看文件


二进制
.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.Td 查看文件


二进制
.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.Td 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.o 查看文件


+ 13
- 8
.theos/obj/debug/arm64e/Tweak.x.m 查看文件

@@ -1,8 +1,5 @@
#line 1 "Tweak.x"




#import <SpringBoard/SBDockIconListView.h>
#import <SpringBoard/SBDockView.h>
#import <SpringBoard/SBIconListView.h>
@@ -41,9 +38,9 @@ HBPreferences *preferences;
#endif

@class SBDockView; @class SBDockIconListView;
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL);
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL);

#line 21 "Tweak.x"
#line 18 "Tweak.x"



@@ -78,9 +75,17 @@ static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGO
}
}

static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}



static __attribute__((constructor)) void _logosLocalCtor_7d006fd9(int __unused argc, char __unused **argv, char __unused **envp) {
static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) {
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"];
[preferences registerDefaults:@{
@"setHeight": @1,
@@ -95,5 +100,5 @@ static __attribute__((constructor)) void _logosLocalCtor_7d006fd9(int __unused a
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"];
}
static __attribute__((constructor)) void _logosLocalInit() {
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);} }
#line 71 "Tweak.x"
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} }
#line 76 "Tweak.x"

+ 0
- 0
.theos/obj/debug/arm64e/burRootListController.m.1022476f.Td 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/burRootListController.m.1022476f.o 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs 查看文件


二进制
.theos/obj/debug/arm64e/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Info.plist 查看文件


二进制
.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/armv7/burRootListController.m.40484a5d.Td 查看文件


+ 0
- 0
.theos/obj/debug/armv7/burRootListController.m.40484a5d.o 查看文件


+ 0
- 0
.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist 查看文件


+ 0
- 0
.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs 查看文件


+ 0
- 0
.theos/obj/debug/armv7s/Tweak.x.8f98122a.Td 查看文件


二进制
.theos/obj/debug/armv7s/Tweak.x.8f98122a.o 查看文件


+ 104
- 0
.theos/obj/debug/armv7s/Tweak.x.m 查看文件

@@ -0,0 +1,104 @@
#line 1 "Tweak.x"

#import <SpringBoard/SBDockIconListView.h>
#import <SpringBoard/SBDockView.h>
#import <SpringBoard/SBIconListView.h>
#import <SpringBoard/SpringBoard.h>
#import <Cephei/HBPreferences.h>


static BOOL transparent;
static BOOL hidden;
static double setHeight;
static double customOpacity;
static NSInteger setIconNumber;

HBPreferences *preferences;



#include <substrate.h>
#if defined(__clang__)
#if __has_feature(objc_arc)
#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
#define _LOGOS_SELF_CONST const
#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif

@class SBDockIconListView; @class SBDockView;
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL);

#line 18 "Tweak.x"



static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) {
if (transparent == NO && hidden == NO) {
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity);
}else if (transparent || hidden) {
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0);
} else {
NSLog(@"Dock not Transparent/hidden, no custom opacity\n");
}
}


static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight);
}

static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
return (_logos_meta_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight);
}





static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}

static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}



static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) {
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"];
[preferences registerDefaults:@{
@"setHeight": @1,
@"customOpacity": @1,
@"hidden": @NO,
@"setIconNumber": @4,
}];
[preferences registerBool:&transparent default:YES forKey:@"transparent"];
[preferences registerBool:&hidden default:NO forKey:@"hidden"];
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"];
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"];
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"];
}
static __attribute__((constructor)) void _logosLocalInit() {
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} }
#line 76 "Tweak.x"

二进制
.theos/obj/debug/armv7s/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Info.plist 查看文件


二进制
.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib 查看文件


+ 0
- 0
.theos/obj/debug/dockifyprefs.bundle/Info.plist 查看文件


+ 0
- 0
.theos/obj/debug/dockifyprefs.bundle/Root.plist 查看文件


+ 0
- 0
.theos/obj/debug/dockifyprefs.bundle/icon.png 查看文件

之前 之后
宽度: 29  |  高度: 29  |  大小: 418B 宽度: 29  |  高度: 29  |  大小: 418B

二进制
.theos/obj/debug/testing.dylib 查看文件


+ 0
- 0
.theos/obj/iphone_simulator/debug/.stamp 查看文件


+ 0
- 0
.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.Td 查看文件


+ 0
- 0
.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.o 查看文件


+ 0
- 0
.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.m 查看文件


+ 1
- 1
.theos/packages/com.burritoz.testing-1.2 查看文件

@@ -1 +1 @@
5
7

+ 1
- 3
Makefile 查看文件

@@ -1,7 +1,5 @@
INSTALL_TARGET_PROCESSES = SpringBoard SpringBoardHome
# TARGET = simulator:clang::7.0
# ARCHS = x86_64 i386
ARCHS = armv7s arm64 arm64e
INSTALL_TARGET_PROCESSES = SpringBoard

include $(THEOS)/makefiles/common.mk


+ 0
- 0
README.md 查看文件


+ 9
- 13
Tweak.x 查看文件

@@ -1,22 +1,10 @@
//import needed files/headers
/*#import <SpringBoardHome/SBDockIconListView.h>
#import <SpringBoardHome/SBDockView.h>
#import <SpringBoardHome/SBIconListView.h> */
//Set up stuff
#import <SpringBoard/SBDockIconListView.h>
#import <SpringBoard/SBDockView.h>
#import <SpringBoard/SBIconListView.h>
#import <SpringBoard/SpringBoard.h>
#import <Cephei/HBPreferences.h>

@interface SBDockView
@end

@interface SBDockIconListView
@end

@interface SBIconListView
@end

//Set up variables for use with Cephei
static BOOL transparent;
static BOOL hidden;
@@ -61,6 +49,14 @@ HBPreferences *preferences;
}
}

+(NSInteger)iconColumnsForCurrentOrientation {
if (hidden) {
return (0);
} else {
return (setIconNumber);
}
}

%end

%ctor {

+ 0
- 0
control 查看文件


+ 0
- 0
dockifyprefs/.DS_Store 查看文件


+ 0
- 0
dockifyprefs/Makefile 查看文件


+ 0
- 0
dockifyprefs/Resources/Info.plist 查看文件


+ 0
- 0
dockifyprefs/Resources/Root.plist 查看文件


+ 0
- 0
dockifyprefs/Resources/icon.png 查看文件

之前 之后
宽度: 29  |  高度: 29  |  大小: 418B 宽度: 29  |  高度: 29  |  大小: 418B

+ 0
- 0
dockifyprefs/burRootListController.h 查看文件


+ 0
- 0
dockifyprefs/burRootListController.m 查看文件


+ 0
- 0
dockifyprefs/entry.plist 查看文件


+ 0
- 0
packages/.DS_Store 查看文件


+ 0
- 0
packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb 查看文件


+ 0
- 0
packages/com.burritoz.testing_1.1_iphoneos-arm.deb 查看文件


二进制
packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb 查看文件


+ 0
- 0
packages/com.burritoz.testing_1.2_iphoneos-arm.deb 查看文件


+ 0
- 0
testing.plist 查看文件


正在加载...
取消
保存