Initial Release 1.0

This commit is contained in:
ShyMemoriees
2019-11-21 19:15:55 +01:00
commit a1c9df151d
124 changed files with 1660 additions and 0 deletions

0
.theos/obj/debug/.stamp Normal file
View File

BIN
.theos/obj/debug/Tick.dylib Executable file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>TickPrefs</string>
<key>CFBundleIdentifier</key>
<string>me.shymemoriees.tickpreferences</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string>TCKRootListController</string>
</dict>
</plist>

View File

@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>action</key>
<string>twitterShy</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>@ShyMemoriees</string>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>ShyMemoriees</string>
<key>user</key>
<string>ShyMemoriees</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<true/>
<key>defaults</key>
<string>me.shymemoriees.tickpreferences</string>
<key>key</key>
<string>Enabled</string>
<key>label</key>
<string>Enabled (Respring required)</string>
<key>PostNotification</key>
<string>me.shymemoriees.tickpreferences/ReloadPrefs</string>
</dict>
<!-- Loudness Controller -->
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Loudness Of The Sound</string>
</dict>
<dict>
<key>cell</key>
<string>PSSegmentCell</string>
<key>default</key>
<integer>0</integer>
<key>defaults</key>
<string>me.shymemoriees.tickpreferences</string>
<key>key</key>
<string>Loudness</string>
<key>validValues</key>
<array>
<integer>0</integer>
<integer>1</integer>
<integer>2</integer>
</array>
<key>validTitles</key>
<array>
<string>Original</string>
<string>Normal</string>
<string>Loud</string>
</array>
<key>alignment</key>
<string>3</string>
<key>PostNotification</key>
<string>me.shymemoriees.tickpreferences/ReloadPrefs</string>
</dict>
<!-- Support Me -->
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Support Me</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBLinkTableCell</string>
<key>label</key>
<string>Little Donation 🌺</string>
<key>subtitle</key>
<string>Helps Me To Pay For My Server</string>
<key>url</key>
<string>https://paypal.me/ShyMemoriees</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBLinkTableCell</string>
<key>label</key>
<string>Source Code 🌙</string>
<key>subtitle</key>
<string>Github</string>
<key>url</key>
<string>https://github.com/ShyMemoriees/Tick</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBLinkTableCell</string>
<key>label</key>
<string>Found A Bug? 🌧</string>
<key>subtitle</key>
<string>Leave A Bug Report Here</string>
<key>url</key>
<string>https://github.com/ShyMemoriees/Tick/issues/new</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Tick By ShyMemoriees, Made With ❤️</string>
</dict>
</array>
<key>title</key>
<string>Tick</string>
</dict>
</plist>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,45 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/TCKAppearanceSettings.m.f5cebdc3.o: \
TCKAppearanceSettings.m /Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h TCKRootListController.h \
/Users/alex/theos/vendor/include/Preferences/PSListController.h \
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
NSTask.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
TCKRootListController.h:
/Users/alex/theos/vendor/include/Preferences/PSListController.h:
/Users/alex/theos/vendor/include/Preferences/PSViewController.h:
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h:
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
NSTask.h:

View File

@ -0,0 +1,45 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/TCKRootListController.m.f5cebdc3.o: \
TCKRootListController.m /Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h TCKRootListController.h \
/Users/alex/theos/vendor/include/Preferences/PSListController.h \
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
NSTask.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
TCKRootListController.h:
/Users/alex/theos/vendor/include/Preferences/PSListController.h:
/Users/alex/theos/vendor/include/Preferences/PSViewController.h:
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h:
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
NSTask.h:

BIN
.theos/obj/debug/arm64/Tick.dylib Executable file

Binary file not shown.

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Tick.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

Binary file not shown.

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.TickPrefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@ -0,0 +1,20 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/Tweak.x.4a893777.o: \
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/Tweak.x.m \
/Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h \
/Users/alex/Documents/GitHub/tick/Tweak.h \
/Users/alex/theos/vendor/include/substrate.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
/Users/alex/Documents/GitHub/tick/Tweak.h:
/Users/alex/theos/vendor/include/substrate.h:

Binary file not shown.

View File

@ -0,0 +1,23 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/Tweak.x.4bc24640.o: \
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64/Tweak.x.m \
/Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h \
/Users/alex/Documents/GitHub/tick/Tweak/Tick.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
/Users/alex/theos/vendor/include/substrate.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
/Users/alex/Documents/GitHub/tick/Tweak/Tick.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
/Users/alex/theos/vendor/include/substrate.h:

Binary file not shown.

View File

@ -0,0 +1,78 @@
#line 1 "Tweak.x"
#import "Tick.h"
void playSound() {
int loudness = [loudnessLevel intValue];
SystemSoundID sound = 0;
AudioServicesDisposeSystemSoundID(sound);
if (loudness == 0) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick.caf"]), &sound);
} else if (loudness == 1) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick2.caf"]), &sound);
} else if (loudness == 2) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick3.caf"]), &sound);
}
AudioServicesPlaySystemSound((SystemSoundID)sound);
}
#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 SBUIIconForceTouchViewController;
#line 25 "Tweak.x"
static BOOL (*_logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$)(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST, SEL, BOOL, id); static BOOL _logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST, SEL, BOOL, id);
static BOOL _logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, id arg2) {
if (enabled) {
playSound();
}
return _logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(self, _cmd, arg1, arg2);
}
static __attribute__((constructor)) void _logosLocalCtor_36835025(int __unused argc, char __unused **argv, char __unused **envp) {
pfs = [[HBPreferences alloc] initWithIdentifier:@"me.shymemoriees.tickpreferences"];
[pfs registerBool:&enabled default:YES forKey:@"Enabled"];
[pfs registerObject:&loudnessLevel default:@"0" forKey:@"Loudness"];
if(enabled)
{Class _logos_class$Tick$SBUIIconForceTouchViewController = objc_getClass("SBUIIconForceTouchViewController"); MSHookMessageEx(_logos_class$Tick$SBUIIconForceTouchViewController, @selector(presentAnimated:withCompletionHandler:), (IMP)&_logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$, (IMP*)&_logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$);}
}

View File

@ -0,0 +1,45 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/TCKAppearanceSettings.m.59867558.o: \
TCKAppearanceSettings.m /Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h TCKRootListController.h \
/Users/alex/theos/vendor/include/Preferences/PSListController.h \
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
NSTask.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
TCKRootListController.h:
/Users/alex/theos/vendor/include/Preferences/PSListController.h:
/Users/alex/theos/vendor/include/Preferences/PSViewController.h:
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h:
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
NSTask.h:

View File

@ -0,0 +1,45 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/TCKRootListController.m.59867558.o: \
TCKRootListController.m /Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h TCKRootListController.h \
/Users/alex/theos/vendor/include/Preferences/PSListController.h \
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
NSTask.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
TCKRootListController.h:
/Users/alex/theos/vendor/include/Preferences/PSListController.h:
/Users/alex/theos/vendor/include/Preferences/PSViewController.h:
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h:
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h:
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
NSTask.h:

Binary file not shown.

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Tick.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

Binary file not shown.

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.TickPrefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@ -0,0 +1,23 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/Tweak.x.258d4f53.o: \
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/Tweak.x.m \
/Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h \
/Users/alex/Documents/GitHub/tick/Tweak/Tick.h \
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \
/Users/alex/theos/vendor/include/substrate.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
/Users/alex/Documents/GitHub/tick/Tweak/Tick.h:
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h:
/Users/alex/theos/vendor/include/substrate.h:

Binary file not shown.

View File

@ -0,0 +1,20 @@
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/Tweak.x.b3492ad1.o: \
/Users/alex/Documents/GitHub/tick/.theos/obj/debug/arm64e/Tweak.x.m \
/Users/alex/theos/Prefix.pch \
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/alex/theos/vendor/include/HBLog.h \
/Users/alex/Documents/GitHub/tick/Tweak.h \
/Users/alex/theos/vendor/include/substrate.h
/Users/alex/theos/Prefix.pch:
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h:
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h:
/Users/alex/theos/vendor/include/HBLog.h:
/Users/alex/Documents/GitHub/tick/Tweak.h:
/Users/alex/theos/vendor/include/substrate.h:

Binary file not shown.

View File

@ -0,0 +1,78 @@
#line 1 "Tweak.x"
#import "Tick.h"
void playSound() {
int loudness = [loudnessLevel intValue];
SystemSoundID sound = 0;
AudioServicesDisposeSystemSoundID(sound);
if (loudness == 0) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick.caf"]), &sound);
} else if (loudness == 1) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick2.caf"]), &sound);
} else if (loudness == 2) {
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick3.caf"]), &sound);
}
AudioServicesPlaySystemSound((SystemSoundID)sound);
}
#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 SBUIIconForceTouchViewController;
#line 25 "Tweak.x"
static BOOL (*_logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$)(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST, SEL, BOOL, id); static BOOL _logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST, SEL, BOOL, id);
static BOOL _logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(_LOGOS_SELF_TYPE_NORMAL SBUIIconForceTouchViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, id arg2) {
if (enabled) {
playSound();
}
return _logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$(self, _cmd, arg1, arg2);
}
static __attribute__((constructor)) void _logosLocalCtor_36835025(int __unused argc, char __unused **argv, char __unused **envp) {
pfs = [[HBPreferences alloc] initWithIdentifier:@"me.shymemoriees.tickpreferences"];
[pfs registerBool:&enabled default:YES forKey:@"Enabled"];
[pfs registerObject:&loudnessLevel default:@"0" forKey:@"Loudness"];
if(enabled)
{Class _logos_class$Tick$SBUIIconForceTouchViewController = objc_getClass("SBUIIconForceTouchViewController"); MSHookMessageEx(_logos_class$Tick$SBUIIconForceTouchViewController, @selector(presentAnimated:withCompletionHandler:), (IMP)&_logos_method$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$, (IMP*)&_logos_orig$Tick$SBUIIconForceTouchViewController$presentAnimated$withCompletionHandler$);}
}