Major refactor: split codebase into multiple files

Now for the fun part: will this compile?
This commit is contained in:
Foxster
2023-12-25 00:27:46 -08:00
parent 0a4bfd8abc
commit d24b4392b0
17 changed files with 856 additions and 879 deletions
+21
View File
@@ -0,0 +1,21 @@
#import "../Tweaks/YouTubeHeader/YTAlertView.h"
#import "uYouPlus.h"
extern NSBundle *uYouPlusBundle();
// YTCastConfirm: https://github.com/JamieBerghmans/YTCastConfirm
%hook MDXPlaybackRouteButtonController
- (void)didPressButton:(id)arg1 {
if (IS_ENABLED(@"castConfirm_enabled")) {
NSBundle *tweakBundle = uYouPlusBundle();
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
%orig;
} actionTitle:LOC(@"MSG_YES")];
alertView.title = LOC(@"CASTING");
alertView.subtitle = LOC(@"MSG_ARE_YOU_SURE");
[alertView show];
} else {
return %orig;
}
}
%end