Update uYouPlus.xm

This commit is contained in:
aricloverGitHub 2024-11-20 21:56:57 -06:00 committed by GitHub
parent 3e922eae56
commit 7b1a1a78b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -608,9 +608,11 @@ static NSMutableArray <YTIItemSectionRenderer *> *filteredArray(NSArray <YTIItem
%hook YTHeaderLogoController
- (void)setTopbarLogoRenderer:(YTITopbarLogoRenderer *)renderer {
// Modify the type of the icon before setting the renderer
YTIIcon *icon = [%c(YTIIcon) new];
icon.iconType = YT_PREMIUM_LOGO; // magic number (537) for Premium icon, hopefully it doesnt change. 158 (YT_DEFAULT_LOGO) is default logo.
renderer.iconImage = icon;
YTIIcon *icon = renderer.iconImage;
if (icon) {
icon.iconType = YT_PREMIUM_LOGO; // magic number (537) for Premium icon, hopefully it doesnt change. 158 (YT_DEFAULT_LOGO) is default logo.
}
// Use this modified renderer
%orig;
}
// For when spoofing before 18.34.5